How to get the List Attribute and Value Options for Products?

URL: http://www.

& amp; Products_id =





Header Parameter format
token base64_encode ()
Secret base64_encode ()
email base64_encode ()

Php Sample:

  // sample List Product Options and Values

$ URL = $ tabain_url. ' /API_DS_Products_Ors.php? Action = List_Products_options_Values ​​& Amp; Products_id = ' $ _ Get [' Products_id '];

$ 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),
' CONTENT-LENGTH: ' . Strlen ($ data_string)))
);

$ result = curl_exec ($ CH);
Curl_Close ($ CH);

print_r ($ result);

// Sample List Product Options and Values ​​EOF

return:

id
Text

Leave a Reply 0