Get CID API by Auto Call intergration docs and help
Announcement · Administrator · posted 09:37 26/03/2023 · edited 15:57 30/10/2023 · 3907 views

Hi everyone!
To help you intergrate our getting CID API (by Auto Call) into your system, we will update docs and help at here. We will use C# for sample code, then you can convert to your language.
This is our API:
https://kichhoat24h.com/user-api/get-cid?iid=[iid]&price=[price]&token=[token_id]&send_to_email=[send_to_email]&callback_url=[callback_url]


iid: this is your Installation ID
price: this is price you ready to pay for that installation ID
token: this is your token ID, you can login the website and get it at https://kichhoat24h.com/apis
send_to_email: you can set any email at here, then when auto call completed, we will send IID/CID to this email by using our email system. You can use this for debugging or if you don’t have any SMTP email service.
callback_url: if you set it, when auto call completed, we will call this url and post iid and cid to this url (using POST method).

This is code from our server:

                   var request = (HttpWebRequest)WebRequest.Create(callback_url);

                    var postData = "iid=" + Uri.EscapeDataString(iid);

                    postData += "&cid=" + Uri.EscapeDataString(cid);

                    var data = Encoding.ASCII.GetBytes(postData);

                    request.Method = "POST";

                    request.ContentType = "application/x-www-form-urlencoded";

                    request.ContentLength = data.Length;

                    using (var stream = request.GetRequestStream())

                    {

                        stream.Write(data, 0, data.Length);

                    }

                    var response = (HttpWebResponse)request.GetResponse();

send_to_email and callback_url are optional options, you can skip them.

We will discuss about the API response now. This is all response cases:

{"success":true,"cid":null,"response_message":"We are calling to get CID for you.","error_message":null}
{"success":true,"cid":null,"response_message":"We are calling to get CID for you and will send it to your email soon.","error_message":null}

{"success":true,"cid":null,"response_message":"We are calling for this IID, please wait for it complete.","error_message":null}

{"success":true,"cid":null,"response_message":"Dead Key.","error_message":null}
{"success":true,"cid":null,"response_message":"Key Blocked.","error_message":null}
{"success":true,"cid":null,"response_message":"Fake Key.","error_message":null}
{"success":true,"cid":null,"response_message":"Need to call MS Support.","error_message":null}
{"success":true,"cid":null,"response_message":"Wrong IID.","error_message":null}

{"success":true,"cid":"426296483130829081064403777482905722580616","response_message":"426296483130829081064403777482905722580616","error_message":null}


{"success":false,"cid":null,"response_message":null,"error_message":"Invalid IID Length!"}
{"success":false,"cid":null,"response_message":null,"error_message":"Server busy, please try again later"}
{"success":false,"cid":null,"response_message":null,"error_message":"You have reached maximum calling IIDs, please wait for all complete"}
{"success":false,"cid":null,"response_message":null,"error_message":"Please add credit to using Auto Call."}
{"success":false,"cid":null,"response_message":null,"error_message":"Invalid syntax or token!"}

And this is the sample code to get cid from API:
        public static string GetCID(string iid, float price, string token)
        {
            string cid = "";

            while (true)
            {
                try
                {
                    var request = (HttpWebRequest)WebRequest.Create("https://kichhoat24h.com/user-api/get-cid");

                    var postData = "iid=" + Uri.EscapeDataString(iid);
                    postData += "&price=" + Uri.EscapeDataString(price.ToString());
                    postData += "&token=" + Uri.EscapeDataString(token);
                    var data = Encoding.ASCII.GetBytes(postData);

                    request.Method = "POST";
                    request.ContentType = "application/x-www-form-urlencoded";
                    request.ContentLength = data.Length;

                    using (var stream = request.GetRequestStream())
                    {
                        stream.Write(data, 0, data.Length);
                    }

                    var response = (HttpWebResponse)request.GetResponse();

                    string res = new StreamReader(response.GetResponseStream()).ReadToEnd();

                    dynamic dRes = JsonConverter.DeserializeObject<dynamic>(res);
                    if (dRes["success"] == false)
                    {
                        Console.WriteLine(dRes["error_message"]);
                        break;
                    }
                    else if (dRes["cid"] != null)
                    {
                        cid = dRes["cid"];
                    }
                    else if (!dRes["response_message"].Contains("We are calling"))
                    {
                        cid = dRes["response_message"];
                    }
                }
                catch (Exception e1)
                {
                    break;
                };

                Thread.Sleep(1000);
            }

            return cid;
        }

Hope all above information helpful for you. Thank you very much!

Like (4)

Please Login or Register to reply this topic.

mkkshlyaga@*.com · #11 · 14:08 04/09/2023

Good afternoon I'm trying to get CID and always get the answer "We are calling for this IID, please wait for it complete.", also I specified callbackurl but nothing comes I checked different ways including through a permanent loop until the answer comes, but the result is the same, api works correctly ?

daswerak@*.com · #10 · 06:05 26/07/2023

Does anyone have a WP plugin for getcid?

dadaga2015@*.com · #9 · 22:29 17/04/2023
Hola , alguien me puede colaborar con las integraciones de las API en WordPress 
order.delivery24x7@*.com · #8 · 13:02 14/04/2023

I have WordPress Plug-in With fully ready UI & Kichhoat24h API integrating set up 

Contact on Telegram / Skype 

comercial@*.com · #7 · 21:59 13/04/2023

I was not able to correctly integrate the CID by Auto Call API interface, Help

info@*.com · #6 · 11:08 31/03/2023


I hope we will have much faster results
c#



public static async Task<string> GetCID(string iid, string token)

{

    string cid = "";


    while (true)

    {

        try

        {

            var httpClient = new HttpClient();

            var postData = new List<KeyValuePair<string, string>>();

            postData.Add(new KeyValuePair<string, string>("iid", iid));

            postData.Add(new KeyValuePair<string, string>("token", token));

            var content = new FormUrlEncodedContent(postData);


            var response = await httpClient.PostAsync("https://kichhoat24h.com/user-api/get-cid", content);

            var res = await response.Content.ReadAsStringAsync();


            dynamic dRes = JsonConvert.DeserializeObject<dynamic>(res);

            if (dRes["success"] == false)

            {

                Console.WriteLine(dRes["error_message"]);

                break;

            }

            else if (dRes["cid"] != null)

            {

                cid = dRes["cid"];

            }

            else if (!dRes["response_message"].Contains("We are calling"))

            {

                cid = dRes["response_message"];

            }

        }

        catch (Exception e1)

        {

            break;

        };


        await Task.Delay(1000);

    }


    return cid;

}


Administrator · #5 · 06:21 31/03/2023

@info@*.com: Thanks for your contribution!

info@*.com · #4 · 04:36 31/03/2023



//php



function getCID($iid, $token){

    $cid = '';

//value='0';

        use temp\holder\CID;

        require 'temp\holder\CID.php';

        require 'temp/holder/get-cid.php';

  

    while(true){

        try{

          curl_setopt_array($curlarray(

  CURLOPT_URL => 'https://kichhoat24h.com/user-api/get-cid',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
));

            $context  = stream_context_create($options);

            $response = file_get_contents($url, false, $context);

           if ($res["success"] == false){

                echo $res["error_message"]; //api Error

                break;

            }elseif ($res["cid"] != null){

                $cid = $res["cid"];

            }elseif (!strpos($res["response_message"], "We are calling")){

                $cid = $res["response_message"];

            }

        }catch(Exception $e){

            break;

        }

 

    }


    return $cid;

}


Administrator · #3 · 02:44 31/03/2023

@soteasmx@*.com: Hi friend!
Microsoft changed their calling policy so our tool is not working at now. We will try to fix the problem tomorrow.

soteasmx@*.com · #2 · 02:11 31/03/2023

is auto call feature down?

joymariedagunton12@*.com · #1 · 12:07 26/03/2023

i don't understand ?