Table of contents
Description
The method retrieves the number of times certain reaction buttons were clicked.
Request URL
http[s]://socialize.gigya.com/socialize.getReactionsCount
Parameters
| Required | Name | Type | Description |
| Required | barID | string | A unique identifier of the reactions bar that identifies the content item to which the user reacted. |
| Optional | buttonIDs | string | A comma delimited list of button IDs, which identify the buttons in the reactions bar. When not specified, the method gets the counts for all the buttons previously reported for this bar. Note that buttons with 0 count will not be returned unless specifically specified. |
Authorization Parameters
Each REST API request must contain identification and authorization parameters.
Note: the authorization parameters are required only if you are using the REST API directly. If you are using one of Gigya's SDKs then these parameters are not required, since the SDK implements the authorization method internally.
The set of required parameters is dependent on your selected method of authorization. There are two options:
- If you are conforming with the OAuth 2.0 standard, you will need to Pass an Access Token. For more information, please read the Using Gigya's REST API in compliance with OAuth 2.0 guide.
- If you are using Gigya's proprietary authorization method, you will need to pass the parameters specified here. Or, if you are making a call over HTTPS then you may pass the secret parameter instead of the timestamp, nonce and sig parameters. For more information, please read the Using Gigya's REST API with our proprietary authorization method guide.
Response Data
| Field | Type | Description |
| errorCode | integer | The result code of the operation. Code '0' indicates success, any other number indicates failure. For a complete list of error codes, see the Error Codes table. |
| errorMessage | string | A short textual description of an error, associated with the errorCode, for logging purposes. This field will appear in the response only in case of an error. |
| errorDetails | string | This field will appear in the response only in case of an error and will contain the exception info, if available. |
| callId | string | Unique identifier of the transaction, for debugging purposes. |
| counts | Array | Array of JSON objects, each contains the following fields: 'buttonId' and 'count'. |
Response Example
{
"counts": [
{
"buttonId": "1",
"count": 15
},
{
"buttonId": "2",
"count": 32
}
],
"statusCode": 200,
"errorCode": 0,
"statusReason": "OK",
"callId": "71adf38864fd44b29c8452072725c473"
}
Comments