1
0
mirror of https://github.com/oceanprotocol/webtasks synced 2025-01-06 20:05:40 +01:00

document CRM endpoint

This commit is contained in:
Matthias Kretschmann 2018-06-26 13:57:39 +02:00
parent 9fa56716c9
commit 127ad00d60
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -16,6 +16,7 @@
- [YouTube](#youtube)
- [Zoho](#zoho)
- [Campaigns API](#campaigns-api)
- [CRM API](#crm-api)
- [Development](#development)
- [Deployment](#deployment)
- [Authors](#authors)
@ -80,6 +81,25 @@ http://localhost:8080/newsletter/:data
https://TASK_URL/TASK_NAME/newsletter/:data
```
#### CRM API
* `/crm/:data`: subscribes the given email address to the newsletter list on Zoho Campaigns.
The data needs to be in `json` format in the following pattern:
```
{First Name:Jellyfish, Last Name:McJellyfish, Contact Email:info@oceanprotocol.com}
```
Construct your request url like so, e.g. locally:
```bash
http://localhost:8080/crm/:data
# when published on webtask.io
https://TASK_URL/TASK_NAME/crm/:data
```
## Development
```bash