getBlogs
- Home
- Blogs & Articles
- UgcBlog
- getBlogs
getBlogs
Return all blogs for a given user_id or url. Optionally in RSS format.
Parameters
Name | Description |
userID optional | The user’s primary identifier. |
nodeID optional | The primary identifier for your network. |
blogID optional | The primary identifier for the user or group’s site. (Same as siteID) |
tierID optional | Tier ID. |
searchType optional | The search type: cascade, node, blog, blog_post, user, tier, site. |
viewable optional | Permission level to use in query. |
skipStatusCheck optional | Whether or not to skip the active comment status check. |
leagueID optional | If supplied, only content which is in the league is matched. |
siteLeagueID optional | If supplied, only content posted by a member of this league is matched. |
rss optional | Whether to display an rss feed or not. |
output optional | The response output format. Accepts JSON, XML and RSS. |
Request Syntax
https://services.onesite.com/rest/ugcBlog?action=getBlogs&nodeID=188234&page=1&perPage=1&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 |
{ "service":"ugcBlog", "action":"getBlogs", "code":1, "total":"71", "page":1, "per_page":1, "item":{ "1":{ "blogID":"234714047", "postID":"117102221", "authorID":"229928503", "title":"Testing+Post%3A+2021378323", "title_url":"testingpost3a2021378323", "date_created":"1548887017", "date_created_public":1548908617, "summary":"%3Cb%3ETESTING%21%3C%2Fb%3E", "num_views":"0", "body":"%3Cb%3ETESTING%21%3C%2Fb%3E", "word_count":"0", "status":"active", "post_status":"", "contentID":"1812919732", "scaled_rating":"0", "rating":0, "rating_count":"0", "owner":{ "user_id":"229928503", "display_name":"ONEsite", "location":"", "age":22, "domain":"onesitedemo.com", "subdir":"onedemo", "home_url":"http://www.onesitedemo.com/onedemo", "node_home_urls":{ "188234":"http://www.onesitedemo.com/onedemo" }, "name":"ONEsite", "gender":"3", "first_name":"ONEsite", "last_name":"", "username":"onesitedemo", "master_node_id":"188234", "avatar":"http://services.onesite.com/resources/images/unisex_v4b.gif?ver=13.06.21", "photo":"http://services.onesite.com/resources/images/unisex_v4.gif?ver=13.06.21", "site_id":"234714047" }, "blog_link":"http://www.onesitedemo.com/onedemo/blog/2019/01/30/testingpost3a2021378323" } }, "message":"Success" } |
Service Information
Service | ugcBlog |
Method | getBlogs |
Type | REST |
Response Types | JSON, XML, RSS |