How to get the list of customer groups registered via API?
URL: http://www.namedoseusite.com.br/api_customers.php?action=customers_groups
Php Sample:
// sample customs goups list$ URL = $ tabain_url. ' /api_customers.php? Action = Customers_Groups ' ;;
$ 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",
' Usuario1: ' . base64_encode ($ Usuario1),
' password1: ' . base64_encode ($ password1)))
);$ result = curl_exec ($ CH);
Curl_Close ($ CH);print_r ($ result);
// sample Customers Groups List Eof
return:
id
Text