Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Panel | |
---|---|
|
Syntax and method parameters
Code Block |
---|
personaclick("get_promo_code", params, success, error); |
Name | Type | Requirement | Description |
---|---|---|---|
params | object | required | Object with request parameters. See below. |
success | function | required | A callback function, to which the API response will be passed. Response type: string. |
error | function | optionally | A callback function that will be called when an error occurs (any HTTP status code other than 200), including when the list of promo codes is empty. |
Request parameters
Name | Type | Requirement | Description |
---|---|---|---|
id | number/string | required | Unique ID of the promo code list. |
API response
Value | Type |
---|---|
Next promo code from the requested list | string |
Note |
---|
The received promo code is cached for 2 hours for the current user's device. The end of the caching period is shifted by 2 hours each time if the user opens pages of the site during the caching period. |
Example request for product recommendations
Code Block | ||
---|---|---|
| ||
personaclick("get_promo_code", {id: 100500}, function(code) { // the functionality of using promo code }, function(error) { // when something went wrong }); |
Menu tree on the right | Return to the main page
panel
Anchor Menu Menu
Info
Every tool is available as an additional option in paid subscription plans. In case of any technical questions, please contact us at support@personaclick.com.
Table of Contents |
---|
title | Table of Contents |
---|
Page Tree | ||
---|---|---|
|
title | Support and Assistance |
---|
|