getArticles
- Home
- Blogs & Articles
- UgcArticle
- getArticles
getArticles
Retrieves a list of articles.
Parameters
Name | Description |
nodeID required | The primary identifier for your network. |
blogID optional | Blog ID (Site ID) the article belongs to. |
createdBy optional | ID of the user that created the article. |
page optional | Page of results to return. |
num optional | Number of items to return per page. |
sortKey optional | Key to sort results on. |
sortOrder optional | Direction to sort results. |
lang_id optional | Language ID. |
optional | |
output optional | The response output format. Accepts JSON and XML. |
Request Syntax
https://services.onesite.com/rest/ugcArticle?action=getArticles&nodeID=188234&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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 |
{ "service":"ugcArticle", "action":"getArticles", "code":1, "message":"Articles Successfully Retrieved", "item":[ { "articleID":"267412", "blogID":"225642611", "nodeID":"188234", "numVersions":"1", "numActiveVersions":"1", "dateCreated":"2019-02-04 13:40:17", "dateCreated_ts":1549309217, "firstPublished":"2019-02-04 13:40:18", "firstPublished_ts":1549309218, "status":"active", "permissions":"1048544289", "isPublic":"1", "numViews":"0", "rating":"0", "cms_url":"http://www.onesitedemo.com/cms/267412/my_new_article", "url":"http://www.onesitedemo.com/go/article/view/267412/my_new_article", "version":{ "versionID":"464685", "articleID":"267412", "blogID":"225642611", "nodeID":"188234", "title":"My New Article", "titleURL":"my_new_article", "summary":"", "body":"The body of my new article...", "layoutID":"0", "numPages":"1", "versionDate":"2019-02-04 13:40:18", "versionDate_ts":1549309218, "createdBy":"229928503", "versionStatus":"active", "attachments":null, "languages":[ false ], "publishDate":"2019-02-04 13:40:18", "publishDate_ts":1549309218 } }, { "articleID":"267355", "blogID":"234714047", "nodeID":"188234", "numVersions":"31", "numActiveVersions":"31", "dateCreated":"2019-02-04 12:26:26", "dateCreated_ts":1549304786, "firstPublished":"2019-02-04 12:26:27", "firstPublished_ts":1549304787, "status":"active", "permissions":"1048544289", "isPublic":"1", "numViews":"0", "rating":"0", "cms_url":"http://www.onesitedemo.com/onedemo/cms/267355/my_new_article", "url":"http://www.onesitedemo.com/onedemo/go/article/view/267355/my_new_article", "version":{ "versionID":"464686", "articleID":"267355", "blogID":"234714047", "nodeID":"188234", "title":"My New Article", "titleURL":"my_new_article", "summary":"A demonstration article.", "body":"<p>This is the text of the sample article.</p>", "layoutID":"0", "numPages":"1", "versionDate":"2019-02-04 13:40:18", "versionDate_ts":1549309218, "createdBy":"229928503", "versionStatus":"active", "attachments":null, "languages":[ false ], "publishDate":"2019-02-04 13:40:18", "publishDate_ts":1549309218 } }, { "articleID":"267354", "blogID":"234714047", "nodeID":"188234", "numVersions":"1", "numActiveVersions":"1", "dateCreated":"2019-02-04 12:25:40", "dateCreated_ts":1549304740, "firstPublished":"2019-02-04 12:25:42", "firstPublished_ts":1549304742, "status":"active", "permissions":"1048544289", "isPublic":"1", "numViews":"0", "rating":"0", "cms_url":"http://www.onesitedemo.com/onedemo/cms/267354/sample_article", "url":"http://www.onesitedemo.com/onedemo/go/article/view/267354/sample_article", "version":{ "versionID":"464598", "articleID":"267354", "blogID":"234714047", "nodeID":"188234", "title":"Sample Article", "titleURL":"sample_article", "summary":"A demonstration article.", "body":"<p>This is the text of the sample article.</p>", "layoutID":"0", "numPages":"1", "versionDate":"2019-02-04 12:25:42", "versionDate_ts":1549304742, "createdBy":"229928503", "versionStatus":"active", "attachments":null, "languages":[ false ], "publishDate":"2019-02-04 12:25:42", "publishDate_ts":1549304742 } } ], "total":3, "page":1, "per_page":10 } |
Service Information
Service | ugcArticle |
Method | getArticles |
Type | REST |
Response Types | JSON, XML |