Skip to content

Commit

Permalink
updating readme for new api
Browse files Browse the repository at this point in the history
  • Loading branch information
Harshal Dhir committed Aug 10, 2020
1 parent bd55dbb commit c96cf15
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -329,19 +329,22 @@ The personalization and engagement api is the core base to build sophisticated r
The process starts with tagging a user, Tagging a user allows you to open up
multiple re-targeting or re-engagement use cases such as sending daily news, personalized responses, etc.

This opens up your chat bot to support variety of deeply personalized use cases without a need for a huge dev ops team.

Tag a User
-----------------------------------------------------------------------------
Annotate or Tag a user for deeper personalization.
Annotate or Tag a user with values for deeper personalization.

::

curl --location --request POST 'https://ganglia-dev.machaao.com/v1/users/tag/<USER_ID>' \
--header 'api_token: <API_TOKEN>' \
--header 'Content-Type: application/json' \
--data-raw '{
"tag": "india",
"tag": "preferred_languages",
"status": 1,
"displayName": "India"
"values": ["en", "fr"],
"displayName": "Languages"
}'

Un-tag a User
Expand All @@ -354,9 +357,8 @@ Un-tag a user for deeper personalization.
--header 'api_token: <API_TOKEN>' \
--header 'Content-Type: application/json' \
--data-raw '{
"tag": "india",
"status": 0,
"displayName": "India"
"tag": "preferred_languages",
"status": 0
}'

Get all the Active Tags for a Particular User in Context
Expand Down

0 comments on commit c96cf15

Please sign in to comment.