How to get the List Attribute and Value Options for Products?
URL:
Php Sample:
Header Parameter
format
Usuario1
base64_encode ()
password1
base64_encode ()
// sample list products and values$ URL = $ tabain_url. ' /api_products_ots.php? Action = list_products_options_values ' ;;
or
$ URL = $ domain_url. ' /api_products_ots.php? Action = list_products_options_values & amps_id = ' $ _ get [' Products_id '];$ CH = curl_init ($ URL);
Curl_Setopt ($ CH, Curlopt_Returntransfer, True);
curl_setopt ($ curl, curlopt_ssl_verifypeer, false);
Curl_Setopt ($ CH, Curlopt_httpheader, Array (
' CONTENT-TYPE: Application/JSON ',
"Cache-Control: No-Cache",
' Usuario1: ' . base64_encode ($ Usuario1),
' password1: ' . base64_encode ($ password1)))
);$ result = curl_exec ($ CH);
Curl_Close ($ CH);print_r ($ result);
// Sample List Products Options and Values Eof
return:
id
Text