List of categories

category/all

Parameters:

  • token — authorization (string)

Example of the method request:

 $token
    );
    if( $curl = curl_init() ) {
        curl_setopt($curl, CURLOPT_URL, 'https://www.ipweb.ru/api/v2/category/all');
        curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);
        curl_setopt($curl, CURLOPT_POST, true);
        curl_setopt($curl, CURLOPT_POSTFIELDS, $post);
        $out = curl_exec($curl);
        echo $out;
        curl_close($curl);
    }

// Result:

{
    "categories": [
        {
            "id": 0,
            "name": "default",
            "uniq_ips": 0
        },
        {
            "id": 2758,
            "name": "catname1",
            "uniq_ips": 1
        },
        {
            "id": 2768,
            "name": "catname2",
            "uniq_ips": 1
        }
   ],
    "error_code": 0
}
IPweb

Rate the material:

Rating: 4.09 out of 5. Total ratings: 16.