How to obtain the list of products registered via API?
URL: http://www.namedoseusite.com.br/api_seller_products_ots.php?action=list_products
Header Parameter | format |
token | base64_encode () |
Secret | base64_encode () |
base64_encode () |
Parameter | format | description |
Status | get |
1, 2 or 3 |
search_model | get | Product Model |
Search | get | Product Name |
category | get | Category Number Only Number is Required |
sort_order | get | Lucky Order by: Sort_product_Name Sort_Date_added Sort_Date_upDated Sort_Code Sort_quantity Sort_Price Sort_Bestseller < /td> |
Php Sample:
// sample List Products$ add_Query_order = ' ' ;;
if ($ _Get [' status ']! = ' ') {
$ add_Query_order. = ' & amp; status = ' $ _ get [' status '];
}
if ($ _Get [' search_model ']! = ' ') {
$ add_Query_order. = ' & amp; search_model = ' $ _ get [' search_model '];
}
if ($ _Get [' Search ']! = ' ') {
$ add_Query_order. = ' & amp; search = ' $ _ get [' search '];
}
if ($ _Get [' category ']! = ' ') {
$ add_Query_order. = ' & amp; category = ' $ _ get [' category '];
}
if ($ _get [' sort_order ']! = ' ') {
$ add_Query_order. = ' & amp; sort_order = ' $ _ get [' sort_order '];
}$ URL = $ tabain_url. ' /API_SELLER_PRODUCTS_OTHERS.PHP? Action = List_Products '. $ Add_Query_order;
$ CH = curl_init ($ URL);
Curl_Setopt ($ CH, Curlopt_Returntransfer, True);
curl_setopt ($ CH, curlopt_ssl_verifypeer, false);
Curl_Setopt ($ CH, Curlopt_httpheader, Array (
' CONTENT-TYPE: Application/JSON ',
"Cache-Control: No-Cache",
' TOKEN: ' . base64_encode ($ token),
' Secret: ' . base64_encode ($ secret),
' E-mail: ' . base64_encode ($ email)))
);$ result = curl_exec ($ CH);
Curl_Close ($ CH);print_r ($ result);
// sample List Products EOF
return:
Products_id
Image
Name
Model
quantity
Status
Date_added
Last_modified