login
login
Take Twitter authentication data and attempt to retrieve and login the matching user in our system.
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. |
return_twitter_credentials optional | Signals that the login service action should return the twitter credentials array if a twitter login is successful, but there is not yet a ONEsite account associated with it. |
output optional | The response output format. Accepts JSON and XML. |
Request Syntax
https://services.onesite.com/rest/svcTwitter?action=login&nodeID=188234&twitterAuthKey=1092548317232459776-mtkB8uYwiuHU7ICAKOmP0znkKe9iUw&twitterAuthSecret=7tgCCqGQCTRKcsfbeRT9O74NUZh3NzKvBIk4c9N6gUzZG&twitterId=1092548317232459776&return_twitter_credentials=1&devkey=[devkey] |
JSON Response
1 2 3 4 5 6 7 8 9 10 11 12 13 |
{ "service":"svcTwitter", "action":"login", "code":1, "message":"Login was successful", "item":{ "user_id":"229928503", "core_u":"8dd6db612c15f4ef0f99b09953a45991", "core_x":"4ccc74db6f8ab8e724748b0d908d7d80", "node_id":188234, "display_name":"ONEsite" } } |
Service Information
Service | svcTwitter |
Method | login |
Type | REST |
Response Types | JSON, XML |