Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Syntax and method parameters

personaclick("get_promo_code", params, success, error);
NameTypeRequirementDescription
paramsobjectrequiredObject with request parameters. See below.
successfunctionrequiredA callback function, to which the API response will be passed. Response type: string.
errorfunctionoptionallyA 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

NameTypeRequirementDescription
idnumber/stringrequiredUnique ID of the promo code list.

API response

ValueType
Next promo code from the requested liststring

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

personaclick("get_promo_code", {id: 100500}, function(code) {
  // the functionality of using promo code
}, function(error) {
  // when something went wrong
});


100302964| Return to the main page




Table of Contents

Support and Assistance

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.

  • No labels