Creating a Category

category/add

Parameters:

  • token — authorization (string)
  • name — category name (string)
  • uniq_ips — unique IP addresses for all campaigns in the category (int)

Example of the method request:

<?php
    $post = array(
        'token' => $token, 
        'name' => 'mysite.ru-new', 'uniq_ips' => 1 
    ); 
    if( $curl = curl_init() ) { 
        curl_setopt($curl, CURLOPT_URL, 'https://www.ipweb.ru/api/v2/category/add'); 
        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: 
{ 
    "status": "ok", 
    "error_code": 0 
}
IPweb

Rate the material:

Rating: 3.75 out of 5. Total ratings: 4.
Last modified

I don't understand anything! Help :-(