verifyCredentials
- Home
- Social Providers
- SvcTwitter
- verifyCredentials
verifyCredentials
Take Twitter authentication data and attempt to retrieve the Twitter user’s details.
Parameters
Name | Description |
nodeID optional | The node ID for this domain. |
domain optional | Domain of ONEsite network to work with. |
twitterRespURL optional | A response url from Twitter containing the access token. |
twitterAuthKey optional | A verified authentication token key from Twitter. |
twitterAuthSecret optional | A verified authentication token secret from Twitter. |
twitterId optional | A Twitter user ID. |
output optional | The response output format. Accepts JSON and XML. |
Request Syntax
https://services.onesite.com/rest/svcTwitter?action=verifyCredentials&nodeID=188234&twitterAuthKey=1092548317232459776-mtkB8uYwiuHU7ICAKOmP0znkKe9iUw&twitterAuthSecret=7tgCCqGQCTRKcsfbeRT9O74NUZh3NzKvBIk4c9N6gUzZG&twitterId=1092548317232459776&devkey=[devkey] |
JSON Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
{ "service":"svcTwitter", "action":"verifyCredentials", "code":1, "message":"Successfully retrieved Twitter credentials", "item":{ "integration_id":"1092548317232459776", "integration_type":"twitter", "display_name":"ONEsiteDevelop1", "first_name":"ONEsite", "last_name":"Developer", "avatar":"http://abs.twimg.com/sticky/default_profile_images/default_profile_normal.png", "username":"ONEsiteDevelop1" } } |
Service Information
Service | svcTwitter |
Method | verifyCredentials |
Type | REST |
Response Types | JSON, XML |