make executable

This commit is contained in:
Kiara Grouwstra 2023-03-04 11:16:54 +01:00
parent 048267a2a8
commit 5b2d1333d7
Signed by: kiara
GPG Key ID: 47D3B7604FFCA83A
2 changed files with 3 additions and 2 deletions

2
leave.sh Normal file → Executable file
View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# usage: leave.sh leaver@example.org
source credentials.sh

3
mailchimp.sh Normal file → Executable file
View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
# usage: mailchimp.sh leaver@example.org
# usage: mailchimp.sh 'Voornaam Achternaam'
@ -6,6 +6,7 @@ user="bij1:${MAILCHIMP_API_KEY}"
dc='us16'
base="https://${dc}.api.mailchimp.com/3.0/"
query="$1"
list_id='e6beec738b' # leden & geinteresseerden
# get lists
curl -X GET "${base}lists?fields=lists.id,lists.name" --user $user | jq -r '.lists[]'