Skip to content
Shubhajit Saha edited this page Jun 8, 2016 · 22 revisions

Path

http://example.com/api

request/transactional/{message_id}
recipient/subscribe/{list}
recipient/unsubscribe/{list}
recipient/update-metadata/{list}
archive/get-info/{request_id}/{unsubscribe_key}

request/transactional/{message_id}

Example:

curl -X POST -i http://example.com/api/request/transactional/1 -d \
"key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\
&to_name=nemo\
&to_email=nemo@example.com\
&pseudo_vars[foo]=bar"

recipient/subscribe/{list}

Example:

curl -X POST -i http://example.com/api/recipient/subscribe/test -d \
  "key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\
  &to_name=nemo\
  &to_email=nemo@example.com\
  &custom_id=\
  &metadata[username]=nemo\
  &metadata[location]=IN\
  &unsubscribed=1000-00-00 00:00:00\
  &subscribed=20XX-XX-XX XX-XX-XX\
  &updated=20XX-XX-XX XX-XX-XX"

Clone this wiki locally