leaving/README.md

51 lines
1.3 KiB
Markdown
Raw Permalink Normal View History

2023-02-11 12:37:21 +00:00
# leave
Deze repo is gericht op het bieden van scripts voor het verwerken van
[opzeggers](https://code.bij1.org/bij1/wiki/wiki/opzeggingen)
door deze uit verschillende systemen te verwijderen, binnen de perken
van de [bewaarplicht](https://wetten.overheid.nl/jci1.3:c:BWBR0033004&paragraaf=3&artikel=20&z=2023-01-01&g=2023-01-01)
(wet financiering politieke partijen artikel 20 lid 2).
## requirements
2023-07-15 10:59:29 +00:00
- [Python](https://python.org/)
- [Poetry](https://python-poetry.org/)
- [jq](https://jqlang.github.io/jq/)
2023-02-11 12:37:21 +00:00
## preparation
- run:
- `poetry install`
- `cp credentials.sample.sh credentials.sh`
- enter in `credentials.sh`:
- [`MAILCHIMP_API_KEY`](https://mailchimp.com/help/about-api-keys/)
- [`TRELLO_API_KEY`](https://trello.com/app-key)
2023-07-04 21:57:01 +00:00
- [`TRELLO_TOKEN`](https://developer.atlassian.com/cloud/trello/guides/rest-api/authorization/#authorizing-a-client)
2023-02-11 12:37:21 +00:00
## usage
```sh
2023-08-10 04:11:26 +00:00
# for multiple emails
bash leave.sh leaver@example.org second@leaver.org
# or by name
bash leave.sh 'Voornaam Achternaam'
2023-06-02 13:05:30 +00:00
```
### mailchimp only
```sh
2023-08-10 04:11:26 +00:00
# for multiple emails
bash mailchimp.sh leaver@example.org second@leaver.org
# or by name
bash mailchimp.sh 'Voornaam Achternaam'
2023-02-11 12:37:21 +00:00
```
2023-07-12 01:02:44 +00:00
### resubscribe
```sh
bash resubscribe.sh email@example.org
```
### patch email
```sh
bash patch-email.sh old@example.org new@example.org
```