Come ottenere l’elenco di stato dell’ordine tramite API?
URL: http://www.namedoseusite.com.br/api_seller_orders.php?action=orders_status
parametro header | formato |
token | base64_encode () |
segreto | base64_encode () |
base64_encode () |
campione PHP:
$ Url = $ tabain_url. ' /pi_seller_orders.php? Action = order_status ' ;;
$ Ch = curl_init ($ url);
CURL_SETOPT ($ CH, CURLOPT_RETURNTRANSFER, TRUE);
CURL_SETOPT ($ CH, CURLOPT_SSL_VERIFYPEER, FALSE);
CURL_SETOPT ($ CH, CURLOPT_HTTPHEADER, Array (
' tipo di contenuto: Applicazione/JSON ',
“Cache-Control: No-Cache”,
' token: ' . base64_encode ($ token),
' segreto: ' . base64_encode ($ segreto),
' e-mail: ' . base64_encode ($ email)))
);
$ result = curl_exec ($ ch);
CURL_CLOSE ($ CH);
print_r ($ risultato);
// ELENCO ELEMMENTO ORDINI STATO EOF re>
return:
id
testo