How to send the questions or questions from customer questions or questions interested in products via API?

Post: http://www.namedoseusite.com.br/api_seller_products_others.php?action=UPDATE_PRODUCTS_CONTACTS





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




Parameter format description
pc_id json

PC ID
Only Number is Required
Format: Int (11)
* Field Required

ANSWER json Only Number is Required
Format: Varchar (255)
* Field Required

php sample

 // sample edit products contacts

$ URL = $ tabain_url. ' /API_SELLER_PRODUCTS_OTHERS.PHP? Action = Update_Products_Contacts ' ;;

$ data = array ("pc_id" = & gt; $ _Get [' pc_id '], // pc id (only number is refraded) * Field Required
"ANSWER" = & GT; $ _Get [' ANSWER '] // The ANSWER
);

$ data_string = json_encode ($ date);

$ CH = curl_init ($ URL);
Curl_Setopt ($ CH, curlopt_customrequest, "post");
Curl_Setopt ($ CH, Curlopt_postFields, $ Data_String);
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 Edit Products Contacts Eof

Return Error:

Code
Message

Return Success:

code
pc_id
Message

Leave a Reply 0