getFavorites
- Home
- Bookmarks & Favorites
- SvcFavorites
- getFavorites
getFavorites
Gets this user’s list of favorites.
Parameters
Name | Description |
userID required | The primary identifier of the user who is reading/adding/removing favorites. |
contentID optional | The contentID of the content to set/remove as a favorite. |
xrefID optional | The xref id of the content that is being referenced ~ this id is equivilent to content’s specific identifier; I.E.: video_id,photo_id,etc… |
favoriteType optional | Type of content. For example: video, photo, blog_post. When passing in a “contentID” use “content. When passing in an “xrefID” use a particular type. Defaults to content. Use a particular type when possible. |
page optional | Page of content to retrieve. |
perPage optional | |
simple optional | Only return the content xref_id and type if this is set to true. |
output optional | The response output format. Accepts JSON and XML. |
Request Syntax
https://services.onesite.com/rest/svcFavorites?action=getFavorites&userID=229928503&type=blog_post&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 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 |
{ "service":"svcFavorites", "action":"getFavorites", "page":1, "per_page":10, "total":"8", "item":[ { "blogID":"234714047", "postID":"117102152", "authorID":"229928503", "title":"Example Blog Post", "title_url":"example_blog_post", "full_post_url":"http://www.onesitedemo.com/onedemo/blog/2019/01/30/example_blog_post", "date_created":"1548870049", "date_created_public":1548891649, "summary":"This is a blog post.", "num_views":"0", "body":"This is a blog post.", "cat_name":null, "category":"0", "wordcount":null, "status":"active", "post_status":"public", "contentID":"1812919586", "scaled_rating":"0", "rating":0, "rating_count":"0", "num_comments":null, "type":"blog_post", "blog_link":"http://www.onesitedemo.com/onedemo/blog/2019/01/30/example_blog_post" }, { "blogID":"234714047", "postID":"117102162", "authorID":"229928503", "title":"Testing+Post%3A+670535017", "title_url":"testingpost3a670535017", "full_post_url":"http://www.onesitedemo.com/onedemo/blog/2019/01/30/testingpost3a670535017", "date_created":"1548870751", "date_created_public":1548892351, "summary":"%3Cb%3ETESTING%21%3C%2Fb%3E", "num_views":"0", "body":"%3Cb%3ETESTING%21%3C%2Fb%3E", "cat_name":null, "category":"0", "wordcount":null, "status":"active", "post_status":"", "contentID":"1812919596", "scaled_rating":"0", "rating":0, "rating_count":"0", "num_comments":null, "type":"blog_post", "blog_link":"http://www.onesitedemo.com/onedemo/blog/2019/01/30/testingpost3a670535017" }, { "blogID":"234714047", "postID":"117102164", "authorID":"229928503", "title":"Testing+Post%3A+1005381040", "title_url":"testingpost3a1005381040", "full_post_url":"http://www.onesitedemo.com/onedemo/blog/2019/01/30/testingpost3a1005381040", "date_created":"1548870932", "date_created_public":1548892532, "summary":"%3Cb%3ETESTING%21%3C%2Fb%3E", "num_views":"0", "body":"%3Cb%3ETESTING%21%3C%2Fb%3E", "cat_name":null, "category":"0", "wordcount":null, "status":"active", "post_status":"", "contentID":"1812919606", "scaled_rating":"0", "rating":0, "rating_count":"0", "num_comments":null, "type":"blog_post", "blog_link":"http://www.onesitedemo.com/onedemo/blog/2019/01/30/testingpost3a1005381040" }, { "blogID":"234714047", "postID":"117102174", "authorID":"229928503", "title":"Testing+Post%3A+1533596933", "title_url":"testingpost3a1533596933", "full_post_url":"http://www.onesitedemo.com/onedemo/blog/2019/01/30/testingpost3a1533596933", "date_created":"1548871235", "date_created_public":1548892835, "summary":"%3Cb%3ETESTING%21%3C%2Fb%3E", "num_views":"0", "body":"%3Cb%3ETESTING%21%3C%2Fb%3E", "cat_name":null, "category":"0", "wordcount":null, "status":"active", "post_status":"", "contentID":"1812919616", "scaled_rating":"0", "rating":0, "rating_count":"0", "num_comments":null, "type":"blog_post", "blog_link":"http://www.onesitedemo.com/onedemo/blog/2019/01/30/testingpost3a1533596933" }, { "blogID":"234714047", "postID":"117102184", "authorID":"229928503", "title":"Testing+Post%3A+1903992599", "title_url":"testingpost3a1903992599", "full_post_url":"http://www.onesitedemo.com/onedemo/blog/2019/01/30/testingpost3a1903992599", "date_created":"1548879360", "date_created_public":1548900960, "summary":"%3Cb%3ETESTING%21%3C%2Fb%3E", "num_views":"0", "body":"%3Cb%3ETESTING%21%3C%2Fb%3E", "cat_name":null, "category":"0", "wordcount":null, "status":"active", "post_status":"", "contentID":"1812919632", "scaled_rating":"0", "rating":0, "rating_count":"0", "num_comments":null, "type":"blog_post", "blog_link":"http://www.onesitedemo.com/onedemo/blog/2019/01/30/testingpost3a1903992599" }, { "blogID":"234714047", "postID":"117102194", "authorID":"229928503", "title":"Testing+Post%3A+476364689", "title_url":"testingpost3a476364689", "full_post_url":"http://www.onesitedemo.com/onedemo/blog/2019/01/30/testingpost3a476364689", "date_created":"1548880545", "date_created_public":1548902145, "summary":"%3Cb%3ETESTING%21%3C%2Fb%3E", "num_views":"0", "body":"%3Cb%3ETESTING%21%3C%2Fb%3E", "cat_name":null, "category":"0", "wordcount":null, "status":"active", "post_status":"", "contentID":"1812919647", "scaled_rating":"0", "rating":0, "rating_count":"0", "num_comments":null, "type":"blog_post", "blog_link":"http://www.onesitedemo.com/onedemo/blog/2019/01/30/testingpost3a476364689" }, { "blogID":"234714047", "postID":"117102204", "authorID":"229928503", "title":"Testing+Post%3A+1497565541", "title_url":"testingpost3a1497565541", "full_post_url":"http://www.onesitedemo.com/onedemo/blog/2019/01/30/testingpost3a1497565541", "date_created":"1548883268", "date_created_public":1548904868, "summary":"%3Cb%3ETESTING%21%3C%2Fb%3E", "num_views":"0", "body":"%3Cb%3ETESTING%21%3C%2Fb%3E", "cat_name":null, "category":"0", "wordcount":null, "status":"active", "post_status":"", "contentID":"1812919662", "scaled_rating":"0", "rating":0, "rating_count":"0", "num_comments":null, "type":"blog_post", "blog_link":"http://www.onesitedemo.com/onedemo/blog/2019/01/30/testingpost3a1497565541" }, { "blogID":"234714047", "postID":"117102213", "authorID":"229928503", "title":"Testing+Post%3A+998732829", "title_url":"testingpost3a998732829", "full_post_url":"http://www.onesitedemo.com/onedemo/blog/2019/01/30/testingpost3a998732829", "date_created":"1548883794", "date_created_public":1548905394, "summary":"%3Cb%3ETESTING%21%3C%2Fb%3E", "num_views":"0", "body":"%3Cb%3ETESTING%21%3C%2Fb%3E", "cat_name":null, "category":"0", "wordcount":null, "status":"active", "post_status":"", "contentID":"1812919682", "scaled_rating":"0", "rating":0, "rating_count":"0", "num_comments":null, "type":"blog_post", "blog_link":"http://www.onesitedemo.com/onedemo/blog/2019/01/30/testingpost3a998732829" } ] } |
Service Information
Service | svcFavorites |
Method | getFavorites |
Type | REST |
Response Types | JSON, XML |