XOMNI: Experience Omni-Channel

Last Updated: May 05, 2016

This API provides the referenced social platforms token value for the current PII User.

Request

HTTP Method Resource URI
GET https://{tenantName}.api.xomni.com/social/token/{socialPlatformName}

URI Parameters

Parameter Name Description Type Conditions
socialPlatformName Social platform name. String

Possible values for available platforms

Value Description
facebook The key used for the Facebook social platform.
twitter The key used for the Twitter social platform.

Request Headers

Header Field Name Description
Content-Type
Content type of the response entity. The value of this header is always application/json.
PIIToken
Includes the base64-encoded “Personally Identifiable Information” data.
Sample: dXNlcm5hbWU6SW5uQXBwc1VzZXI7cGFzc3dvcmQ6SW5uQXBwc1Bhc3M=
Authorization
Access or identity token taken from oauth APIs.
Sample: Bearer dc8f1dcdbe454da8a25621839a93569337522968019e4bd7becd6e01285444da
Accept
Includes minor version header.
Sample: application/vnd.xomni.api-v4-1, */*

Response

{  
   "Data":{  
      "oauth_token":"15882569-PzAP1SWdkK8bltXreVsgr9EeYr1bJjl50jGlNnOFo",
      "oauth_token_secret":"YAo0ENafYSMAi3z3PHhqW9M48PSdAV3xY2Yd91I2MNmOo"
   }
}

Response Body Description

Parameter Name Description Type
Data Social platform spesific token stored by XOMNI String

Response Headers

Header Field Name Description
Content-Type
Content type of the response entity. The value of this header is always application/json.

Status Codes

A successful operation returns status code 200 (OK) for GET operations. Possible response status codes are as listed below:

Status Code Description
404 (Not Found) There is no token for the associated social platform or the current token saved by XOMNI is expired or not valid.