Comment obtenir la liste des pays via l’API?
URL: http://www.namedoseusite.com.br/api_custumers.php?action=Customers_country
PHP Échantillon:
// Exemple de listes de pays clients$ Url = $ tabain_url. & # 39; /API_CUSITYERS.PHP? Action = Clients_Country & # 39 ;;
$ Ch = curl_init ($ url);
Curl_setopt ($ ch, curlopt_returntransfer, true);
curl_setopt ($ ch, curlopt_ssl_verifypeer, false);
Curl_setopt ($ ch, curlopt_httpheader, array (
& # 39; Type de contenu: application / json & # 39;,
"Cache-Control: No-cache",
& # 39; usuario1: & # 39; . base64_encode ($ usuario1),
& # 39; Password1: & # 39; . base64_encode ($ password1)))
));$ result = curl_exec ($ ch);
Curl_close ($ ch);print_r ($ result);
// Exemple de clients Country Liste EOF
Retour:
country_id
country_name