getAddThisInterests
get
/ccadmin/v1/addThisInterests
Get AddThis interest suggestions for autocomplete clients. The latest interests can be found at https://www.addthis.com/interestsMap.json.
Request
Supported Media Types
- application/json
Query Parameters
-
fields(optional): string
This controls which fields are returned in the response body. The default is to return all fields: id, displayName and rank.
-
limit(optional): integer
This is the field to specify the number of records to be fetched per REST call. This number should be small so results fit in an autocomplete suggestions box.
-
q(optional): string
This field specifies the SCIM compliant query used to filter addThisInterests. While not technically required, this endpoint is meant to be used with the co operator like q=displayName co "fish".
-
sort(optional): string
This field specifies the sort order of the list to be fetched. We recommend using the rank field, e.g. sort=rank:desc
Header Parameters
-
Accept-Language(optional): string
The locale.
Response
Supported Media Types
- application/json
200 Response
The following model is returned when operation succeeds.
Root Schema : getAddThisInterests_response
Type:
Show Source
object
-
items(optional):
array items
The returned list of items.
-
limit(optional):
integer
Maximum number of addThisInterests to be fetched.
-
sort(optional):
array sort
The sort used for the returned addThisInterests.
Nested Schema : items
Type:
Show Source
object
-
displayName(optional):
string
The name of the AddThis interest.
-
id(optional):
string
The ID of the AddThis interest..
-
size(optional):
string
Values are Small, Medium and Large.
Nested Schema : items
Type:
Show Source
object
-
order(optional):
string
The sort order: either asc or desc.
-
property(optional):
string
The property sorted on.
Example Response (application/json)
{
"q":"displayName co \"fish\"",
"totalResults":-1,
"offset":0,
"limit":5,
"sort":[
{
"property":"displayName",
"order":"asc"
}
],
"items":[
{
"size":"Medium",
"displayName":"Lifestyle & Activity, Outdoors, Fishing",
"id":586
},
{
"size":"Small",
"displayName":"Lifestyle & Activity, Pets, Fish",
"id":730
}
]
}
Default Response
The error response.
The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
|Error Code|Description|
|------------------|------------------|
|54083|An error occurred accessing addThisInterests with query {0}.|
|85003|Invalid attribute in query: {}|
|85000|q query param is not valid SCIM filter format|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code