getFriendsTimeline
- Home
- Social Providers
- SvcTwitter
- getFriendsTimeline
getFriendsTimeline
Take Twitter authentication data and retrieve friends_timeline from Twitter API.
Parameters
Name | Description |
nodeID optional | The node ID for this domain. |
domain optional | Domain of ONEsite network to work with. |
userID required | ID of a ONEsite user. |
page optional | Pagination param |
num optional | Pagination param |
client optional | The client viewing a user’s timeline. Sending ‘iphone’ or ‘android’ will limit the user information returned to make it more manageable. |
output optional | The response output format. Accepts JSON and XML. |
Request Syntax
https://services.onesite.com/rest/svcTwitter?action=getFriendsTimeline&nodeID=188234&userID=229928503&page=1&num=5&client=iphone&devkey=[devkey] |
JSON Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
{ "service":"svcTwitter", "action":"getFriendsTimeline", "code":1, "message":"Successfully retrieved friends timeline", "page":1, "per_page":5, "item":[ { "created_at":"Wed Feb 27 22:34:26 +0000 2019", "id":1100886906387062784, "id_str":"1100886906387062784", "text":"Hello World", "truncated":false, "entities":{ "hashtags":[ ], "symbols":[ ], "user_mentions":[ ], "urls":[ ] }, "source":"<a href="http://twitter.com" rel="nofollow">Twitter Web Client</a>", "in_reply_to_status_id":null, "in_reply_to_status_id_str":null, "in_reply_to_user_id":null, "in_reply_to_user_id_str":null, "in_reply_to_screen_name":null, "user":{ "name":"ONEsite Developer", "screen_name":"ONEsiteDevelop1", "id":1092548317232459776, "profile_image_url":"http://abs.twimg.com/sticky/default_profile_images/default_profile_normal.png" }, "geo":null, "coordinates":null, "place":null, "contributors":null, "is_quote_status":false, "retweet_count":0, "favorite_count":0, "favorited":false, "retweeted":false, "lang":"en", "created_ts":1551306866 } ] } |
Service Information
Service | svcTwitter |
Method | getFriendsTimeline |
Type | REST |
Response Types | JSON, XML |