From 127ad00d600db1f6960ff58624a498f54595a18f Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 26 Jun 2018 13:57:39 +0200 Subject: [PATCH] document CRM endpoint --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/README.md b/README.md index 2a01f1c..b0210d4 100644 --- a/README.md +++ b/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