Is it possible to send dynamic content using the API (/createMessage)?

Thanks.

asked 17 Nov '15, 23:36
kimlima's gravatar image

kimlima
112

Hi,

The syntax for dynamic content is the same as in the UI, so the basic request that processes values, for instance, of the "Name" and "City" tags should be as follows:

{
"request":{
"application":"PW_APP_CODE",
"auth":"API_ACCESS_TOKEN",
"notifications":[
{
"send_date":"now",
"ignore_user_timezone": true,
"content":"Hey {Name|CapitalizeFirst|friend}, how's the weather in {City|CapitalizeFirst|your city}?​",
"platforms": [1]
}
]
}
}
permanent link
answered 18 Nov '15, 13:44
Andrew_H's gravatar image

Andrew_H
3766

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×140
×120
×52

question asked: 17 Nov '15, 23:36

question was seen: 520 times

last updated: 18 Nov '15, 13:44