Get CID API by Auto Call intergration docs and help
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!
Yes, we can. I will let you know when it has fixed.
Is it possible to set a fixed price for get CID via API?
@[email protected]: ok friend. We will add it soon.
Please addd API call to check balance
how call back url work?
hello admin, how to upgrade my account to seller ?
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 ?
Does anyone have a WP plugin for getcid?
I was not able to correctly integrate the CID by Auto Call API interface, Help
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;
}
@info@*.com: Thanks for your contribution!
//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($curl, array(
$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;
}
@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.
is auto call feature down?
i don't understand ?