market.add
Add an product.
Name | Required | Type | Description |
---|---|---|---|
gid | false | | Group ID |
type | true | | Product type:
|
attachment | true | | Json-formatted product content |
catalog_ids | false | | Catalogs ids to add the product |
devices | false | | Posting platform |
update_default_visibility | false | |
Authorization
Session is requiredRequired permissions
- GROUP_CONTENT
- VALUABLE_ACCESS
Requires strict mediablock order in an attachment field - title(text), description(text, optional), photo (optional), product specific info. One of description or photos must be defined. Example:
Default currency is russian ruble. Default lifetime is 30 days. It is possible to specify others: USD, KZT, UAH, GEL, UZS, KGS, AZN, USD, EUR. Example with 10$ price:
If it’s required to set link to external site, it’s possible to specify partner_link field in product info:
Photo uploading is similar with mediatopic. It also does not require commit invoking.
Type
{ "product_id": "String", "success": "boolean" }
Application paramters
User session data
|
Method
List of paramters
Используем для подписи secret_key = session_secret_key
Используем для подписи secret_key = application_secret_key
Используем для подписи secret_key = MD5(access_token + application_secret_key)
secret_key =
Сортируем и склеиваем параметры запроса и secret_key
Рассчитываем MD5 от полученной строки и получаем параметр sig