mirror of
https://github.com/oceanprotocol/webtasks
synced 2025-01-06 20:05:40 +01:00
document CRM endpoint
This commit is contained in:
parent
9fa56716c9
commit
127ad00d60
20
README.md
20
README.md
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user