How to obtain the list of categories and sub-categories registered via API?

URL: http://www.namedoseusite.com.br/api_categories.php?action=categories_list

Php Sample:

 // sample list categories and sub-categories

$ URL = $ tabain_url. ' /api_categories.php? Action = categories_list ' ;;

$ 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 list categories and sub-categories eof

return:

id
Text

Leave a Reply 0