Категория: Товар

IMAGES IMAGES Метод BatchSearchItemsFrame

Глобальный поиск товаров, одновременно с дополнительными блоками

Тестовый запрос

Аргумент Тип Значение
instanceKey String
Ключ для работы с OTAPI
language String
Язык для запрашиваемых данных
signature String
Сигнатура для идентификации запроса. Используется только если у ключа есть секрет
timestamp String
Отметка времени для сигнатуры. Используется только если у ключа есть секрет
sessionId String
Идентификатор сессии покупателя
xmlParameters String (xml)
Параметры поиска:
framePosition Int32
Номер элемента, начиная с которого формируется список
frameSize Int32
Количество элементов, попадающих в список
blockList String
Список дополнительных блоков. Допустимые блоки: SubCategories, SearchProperties, RootPath, Vendor, Brand, Category, HintCategories, AvailableSearchMethods

Ответ

Аргумент Тип Значение
instanceKey String f867ebf2-219f-471a-81b8-078b434a1a78
language String en
sessionId String godMode
framePosition Int32 0
frameSize Int32 2
blockList String[] AvailableSearchMethods
xmlParameters String (xml)

Тип
Request
Curl GET
curl -X GET "http://dev.otapi.net/service/BatchSearchItemsFrame?instanceKey=f867ebf2-219f-471a-81b8-078b434a1a78&language=en&sessionId=godMode&framePosition=0&frameSize=2&blockList=AvailableSearchMethods&xmlParameters=%3CSearchItemsParameters%3E%3CItemTitle%3ECats%3C%2FItemTitle%3E%3C%2FSearchItemsParameters%3E"
Curl POST
curl -X POST "http://dev.otapi.net/service/BatchSearchItemsFrame" -H "Content-Type: application/x-www-form-urlencoded" -d "instanceKey=f867ebf2-219f-471a-81b8-078b434a1a78&language=en&sessionId=godMode&framePosition=0&frameSize=2&blockList=AvailableSearchMethods&xmlParameters=%3CSearchItemsParameters%3E%3CItemTitle%3ECats%3C%2FItemTitle%3E%3C%2FSearchItemsParameters%3E"

Ответ

Аргумент Тип Значение
instanceKey String f867ebf2-219f-471a-81b8-078b434a1a78
language String en
sessionId String godMode
framePosition Int32 0
frameSize Int32 2
blockList String[] RootPath
xmlParameters String (xml)

Тип
Request
Curl GET
curl -X GET "http://dev.otapi.net/service/BatchSearchItemsFrame?instanceKey=f867ebf2-219f-471a-81b8-078b434a1a78&language=en&sessionId=godMode&framePosition=0&frameSize=2&blockList=RootPath&xmlParameters=%3CSearchItemsParameters%3E%3CImageUrl%3Ehttps%3A%2F%2Fcdn.pixabay.com%2Fphoto%2F2017%2F10%2F22%2F15%2F56%2Fpumpkins-2878159_960_720.jpg%3C%2FImageUrl%3E%3C%2FSearchItemsParameters%3E"
Curl POST
curl -X POST "http://dev.otapi.net/service/BatchSearchItemsFrame" -H "Content-Type: application/x-www-form-urlencoded" -d "instanceKey=f867ebf2-219f-471a-81b8-078b434a1a78&language=en&sessionId=godMode&framePosition=0&frameSize=2&blockList=RootPath&xmlParameters=%3CSearchItemsParameters%3E%3CImageUrl%3Ehttps%3A%2F%2Fcdn.pixabay.com%2Fphoto%2F2017%2F10%2F22%2F15%2F56%2Fpumpkins-2878159_960_720.jpg%3C%2FImageUrl%3E%3C%2FSearchItemsParameters%3E"
Аргумент Тип Значение
instanceKey String f867ebf2-219f-471a-81b8-078b434a1a78
language String en
sessionId String godMode
framePosition Int32 0
frameSize Int32 2
blockList String[]
xmlParameters String (xml)

Тип
Request
Curl GET
curl -X GET "http://dev.otapi.net/service/BatchSearchItemsFrame?instanceKey=f867ebf2-219f-471a-81b8-078b434a1a78&language=en&sessionId=godMode&framePosition=0&frameSize=2&blockList=&xmlParameters=%3CSearchItemsParameters%3E%3CItemTitle%3ECats%3C%2FItemTitle%3E%3CFeatures%3E%3CFeature+Name%3D%22Discount%22%3Etrue%3C%2FFeature%3E%3C%2FFeatures%3E%3C%2FSearchItemsParameters%3E"
Curl POST
curl -X POST "http://dev.otapi.net/service/BatchSearchItemsFrame" -H "Content-Type: application/x-www-form-urlencoded" -d "instanceKey=f867ebf2-219f-471a-81b8-078b434a1a78&language=en&sessionId=godMode&framePosition=0&frameSize=2&blockList=&xmlParameters=%3CSearchItemsParameters%3E%3CItemTitle%3ECats%3C%2FItemTitle%3E%3CFeatures%3E%3CFeature+Name%3D%22Discount%22%3Etrue%3C%2FFeature%3E%3C%2FFeatures%3E%3C%2FSearchItemsParameters%3E"
Аргумент Тип Значение
instanceKey String f867ebf2-219f-471a-81b8-078b434a1a78
language String en
sessionId String godMode
framePosition Int32 0
frameSize Int32 2
blockList String[]
xmlParameters String (xml)

Тип
Request
Curl GET
curl -X GET "http://dev.otapi.net/service/BatchSearchItemsFrame?instanceKey=f867ebf2-219f-471a-81b8-078b434a1a78&language=en&sessionId=godMode&framePosition=0&frameSize=2&blockList=&xmlParameters=%3CSearchItemsParameters%3E%3CCategoryId%3Eotc-110%3C%2FCategoryId%3E%3C%2FSearchItemsParameters%3E"
Curl POST
curl -X POST "http://dev.otapi.net/service/BatchSearchItemsFrame" -H "Content-Type: application/x-www-form-urlencoded" -d "instanceKey=f867ebf2-219f-471a-81b8-078b434a1a78&language=en&sessionId=godMode&framePosition=0&frameSize=2&blockList=&xmlParameters=%3CSearchItemsParameters%3E%3CCategoryId%3Eotc-110%3C%2FCategoryId%3E%3C%2FSearchItemsParameters%3E"
Аргумент Тип Значение
instanceKey String f867ebf2-219f-471a-81b8-078b434a1a78
language String en
sessionId String godMode
framePosition Int32 0
frameSize Int32 2
blockList String[]
xmlParameters String (xml)

Тип
Request
Curl GET
curl -X GET "http://dev.otapi.net/service/BatchSearchItemsFrame?instanceKey=f867ebf2-219f-471a-81b8-078b434a1a78&language=en&sessionId=godMode&framePosition=0&frameSize=2&blockList=&xmlParameters=%3CSearchItemsParameters%3E%3CVendorId%3E%E4%BC%98%E8%A1%A3%E5%BA%93%E5%AE%98%E6%96%B9%E6%97%97%E8%88%B0%E5%BA%97%3C%2FVendorId%3E%3COrderBy%3EPrice%3AAsc%3C%2FOrderBy%3E%3C%2FSearchItemsParameters%3E"
Curl POST
curl -X POST "http://dev.otapi.net/service/BatchSearchItemsFrame" -H "Content-Type: application/x-www-form-urlencoded" -d "instanceKey=f867ebf2-219f-471a-81b8-078b434a1a78&language=en&sessionId=godMode&framePosition=0&frameSize=2&blockList=&xmlParameters=%3CSearchItemsParameters%3E%3CVendorId%3E%E4%BC%98%E8%A1%A3%E5%BA%93%E5%AE%98%E6%96%B9%E6%97%97%E8%88%B0%E5%BA%97%3C%2FVendorId%3E%3COrderBy%3EPrice%3AAsc%3C%2FOrderBy%3E%3C%2FSearchItemsParameters%3E"
Аргумент Тип Значение
instanceKey String f867ebf2-219f-471a-81b8-078b434a1a78
language String en
sessionId String godMode
framePosition Int32 0
frameSize Int32 2
blockList String[]
xmlParameters String (xml)

Тип
Request
Curl GET
curl -X GET "http://dev.otapi.net/service/BatchSearchItemsFrame?instanceKey=f867ebf2-219f-471a-81b8-078b434a1a78&language=en&sessionId=godMode&framePosition=0&frameSize=2&blockList=&xmlParameters=%3CSearchItemsParameters%3E%3CProvider%3ETaobao%3C%2FProvider%3E%3CSearchMethod%3EDefault%3C%2FSearchMethod%3E%3CItemTitle%3EDogs%3C%2FItemTitle%3E%3CMinPrice%3E200%3C%2FMinPrice%3E%3C%2FSearchItemsParameters%3E"
Curl POST
curl -X POST "http://dev.otapi.net/service/BatchSearchItemsFrame" -H "Content-Type: application/x-www-form-urlencoded" -d "instanceKey=f867ebf2-219f-471a-81b8-078b434a1a78&language=en&sessionId=godMode&framePosition=0&frameSize=2&blockList=&xmlParameters=%3CSearchItemsParameters%3E%3CProvider%3ETaobao%3C%2FProvider%3E%3CSearchMethod%3EDefault%3C%2FSearchMethod%3E%3CItemTitle%3EDogs%3C%2FItemTitle%3E%3CMinPrice%3E200%3C%2FMinPrice%3E%3C%2FSearchItemsParameters%3E"