< Previous | Contents | Next >

Substituting values in your GET or POST request template

To convert an API query string value, replace it with its relevant local environment variable.

Important: The type, format, and parameters of a GET or POST message vary and depend on your message broker. These guidelines are general and you need to contact your message broker to successfully complete the task. To see a GET/POST request example, see GET or POST request example.

Note: In GET or POST request example, the local environment variables are enclosed in curly braces and preceded by a dollar sign: ${}.

In the example in GET or POST request example, the following conversions take place:

username=demot converts to username=${USER}

&password=demo converts to &password=${PASSWORD}

&msg=1234 converts to &msg=${TEXT}

Use the environment variables in the ADD MESSAGE BROKER SETTINGS dialog box. For more information, see Add message broker settings.

${ORIGINATOR}: Your message broker's phone number. To the user, this number displays as the SMS sender.

${USER}: The log on that the message broker provides.

${PASSWORD}: The password that the message broker provides.

${HOST}: The message broker's URL

${PORT}: The port you use to connect to the message broker

As well as the environment variables in the ADD MESSAGE BROKER SETTINGS dialog box, PowerManage automatically creates the following variables that you can also use:

${CONTENT_LENGTH}: Information about the size of POST request body

${ID}: An auto-increment variable

${UUID}: An auto-generated variable that is used as a message ID

${DESTINATION}: SMS recipient number

${TEXT}: Message text