mirror of
https://github.com/oceanprotocol/webtasks
synced 2025-01-07 20:35:30 +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)
|
- [YouTube](#youtube)
|
||||||
- [Zoho](#zoho)
|
- [Zoho](#zoho)
|
||||||
- [Campaigns API](#campaigns-api)
|
- [Campaigns API](#campaigns-api)
|
||||||
|
- [CRM API](#crm-api)
|
||||||
- [Development](#development)
|
- [Development](#development)
|
||||||
- [Deployment](#deployment)
|
- [Deployment](#deployment)
|
||||||
- [Authors](#authors)
|
- [Authors](#authors)
|
||||||
@ -80,6 +81,25 @@ http://localhost:8080/newsletter/:data
|
|||||||
https://TASK_URL/TASK_NAME/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
|
## Development
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
Loading…
Reference in New Issue
Block a user