URL: http://www.namedoseusiten.com.br/api_ds_products_ots.php?action=zones
Header Parameter | Format |
Token | Base64_encode () |
Secret | Base64_encode () |
E -Mail | Base64_encode () |
PHP -Probe:
// Beispielzonen $ Url = $ tabain_url. ' /api_ds_products_ors.php? Action = Zones ' ;; $ data = array ("country_id" = & gt; $ _get [' Country_id '] // Country ID (nur die Zahl wird bewertet) * Feld erforderlich ); $ 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_sl_verifypeer, false); Curl_setopt ($ ch, curlopt_httpHeader, Array (Array ( ' Inhaltstyp: Anwendung/JSON ',, "Cache-Control: No-Cache", ' Token: ' . Basis64_CODE ($ token), ' Geheimnis: ' . Basis64_CODE ($ Secret), ' E-Mail: ' . Basis64_CODE ($ E -Mail), ' Inhaltslänge: ' . Strlen ($ data_string)))) ); $ result = curl_exec ($ ch); Curl_close ($ ch); print_r ($ result); // Beispielzonen EOF
return:
id
text < /p>
URL: http://www.namedoseusiten.com.br/api_ds_products_ots.php?action=zones
Header Parameter | Format |
Token | Base64_encode () |
Secret | Base64_encode () |
E -Mail | Base64_encode () |
PHP -Probe:
// Beispielzonen
$ Url = $ tabain_url. ' /api_ds_products_ors.php? Action = Zones ' ;;
$ data = array ("country_id" = & gt; $ _get [' Country_id '] // Country ID (nur die Zahl wird bewertet) * Feld erforderlich
);$ 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_sl_verifypeer, false);
Curl_setopt ($ ch, curlopt_httpHeader, Array (Array (
' Inhaltstyp: Anwendung/JSON ',,
"Cache-Control: No-Cache",
' Token: ' . Basis64_CODE ($ token),
' Geheimnis: ' . Basis64_CODE ($ Secret),
' E-Mail: ' . Basis64_CODE ($ E -Mail),
' Inhaltslänge: ' . Strlen ($ data_string))))
);$ result = curl_exec ($ ch);
Curl_close ($ ch);print_r ($ result);
// Beispielzonen EOF
return:
id
text < /p>