Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Get Product Counters
Method Objective
The method allows getting 24-hour and 15-minute counters of interaction with a product.
Request
Endpoint | Request Type |
---|---|
https://api.personaclick.com/products/counters | GET |
Parameters
Name | Type | Requirement | Description |
---|---|---|---|
shop_id | string | required | Unique Store Key in PersonaClick. Located there: Account > Settings > Store Settings |
item | string | required | Product ID |
API Response Code
HTTP status code | Description |
---|---|
200 OK | The request was successful. |
400 Bad Request | See the "message" property of the API response for details. |
403 Forbidden | See the "message" property of the API response for details. |
API Response Data
Name | Type | Description |
---|---|---|
now | object | The product interaction counters for the last 15 minutes. The following properties are available:
|
daily | object | The product interaction counters for the last 24 hours. The following properties are available:
|
status | string | Available only in case of an error. Contains the "error" value in this case. |
message | string | Available only in case of an error. Contains a description of the error. |
Request Example
Code Block | ||||
---|---|---|---|---|
| ||||
curl 'https://api.personaclick.com/products/counters?shop_id=0d42fd8b713d0752776ca589cc0056&item=100500' |
Column | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Page Navigation
Related Pages
|