The following steps described how to create a getMessage/getMessages API call using Postman.
Procedure:
- Get info for a single message
- Create a new Get request in Postman and set the following URL https://api.leanplum.com/api?action=getMessage
- As a request parameters set the
appId=<app id of your Leanplum app>
clientKey=<the Read-only key of you Leanplum app>,
apiVersion=1.0.6
id=<the message id for which you will request the info>- We can get the appId and the clientKey from the dashboard from the App Setting section
- The id of the message can be taken from the message URL
- As a result, you will receive a JSON object with the message info(messageType, name, status, etc.)
- Get info for all message/campaign's actions from the dashboard
- Create a new Get request in Postman and set the following URL https://api.leanplum.com/api?action=getMessages
- As a request parameters set the
appId=<app id of your Leanplum app>
clientKey=<the Read-only key of you Leanplum app>,
apiVersion=1.0.6
includeDrafts=<set to true - for including the drafts and to false - if not>
recent=<set to false - for recieving all messages, true - for returning the recent one>- Get the appId and the clientKey from the dashboard from the App Setting section.
- As a result, you will receive an array with the info for all messages and the actions from the campaigns.
What's next: