Messages

Web and social messaging

The Whispir API supports publishing to web, RSS and social media through existing configurations set up in the Whispir platform.

If your existing Whispir setup already allows you to publish to these destinations, you can simply specify the information in the message, and it will be published automatically.

Web publishing

The Web section is used to publish information to Whispir’s Contact Portal (or Whispir Community) or to a predefined web destination such as your company intranet.

Whispir can automatically export this content as plain text or HTML to a location for you to either iFrame into your webpage or include via AJAX.

For more information on web publishing contact the Whispir Support Team.

Social publishing

The Social section is used to publish information to Twitter or Facebook as per your Whispir implementation.

Whispir can automatically publish content to your pre-configured Twitter and Facebook pages based on the information you have provided us.

For more information about configuring social publishing contact the Whispir Support Team.

  • JSON
  • XML

Web and Social Messaging

Example: Social media request/response

{{codeStart}}

HTTP 1.1 POST https://api.<region>.whispir.com/messages?apikey=[your_api_key]

Authorization: Basic am9obi5zbWl0aDpteXBhc3N3b3Jk

x-api-key: your_api_key

Content-Type: application/vnd.whispir.message-v1+json

{

"to" : "+1000000000",

"subject" : "Test web message",

"web" : {

"body" : "This is the body of the web content",

"type" : "text/plain"

},

"social" : {

"social" : [{

"id" : "social",

"body" : "This is the content of social message for Twitter"

}, {

"id" : "socialType",

"body" : "text/plain"

}, {

"id" : "social_long",

"body" : "This is the content of social message for Facebook"

}]

}

}

{{codeEnd}}