store

store.getProducts

The translation was generated automatically and may contain mistakes

Returns the list of products.

To call this method, you can use:
• user access token obtained in the standalone app through Implicit Flow

Parameters

type

string

Type of products:

  • •
    stickers stickers;
  • •
    votes - voices.
merchant

string

Shop:

  • •
    google .
  • •
    apple .
  • •
    microsoft .
section

string

product_ids

integer

Product identifiers for which information is required. If this parameter is used, the parameter type is mandatory.

filters

string

Determines the status by which products should be filtered:

  • •
    purchased purchased;
  • •
    active - are active;
  • •
    promoted advertising.
    It is mandatory if the parameter is not used product_ids .
extended

checkbox

If this parameter is 1 extended product information will be returned.

Result

Returns a list of product objects containing fields:

  • •
    id the product identifier;
  • •
    type Type of product;
  • •
    purchased — куплен ли продукт:
    • •
      0 - not bought,
    • •
      1 - bought.
  • •
    active The state of the product:
    • •
      0 - hidden,
    • •
      1 - активен.
  • •
    promoted - returns 1 if the product is advertising;
  • •
    purchase_date Date of purchase (only if purchased равен 1 ).

If a parameter was given extended = 1 fields are returned:

  • •
    title name of the product;
  • •
    base_url URL image folders for this product;
  • •
    %type% object with additional information about the product of this type.

If type равен stickers in the field stickers The object with fields will be returned:

  • •
    base_url url OF folders with images of stickers;
  • •
    sticker_ids An array of sticker identifiers.

Error codes

Common errors may occur during execution