Mobile Attribution Demo code example
Application key value (HTTP://WWW.HAOSERVICE.COM/DOCS/14) after the input to check the mobile phone number can be used, just finished testing, no problem.
Using System;
Using System.Collections.Generic;
Using System.Linq;
Using System.Text;
Using System.Net.Security;
Using System.Security.Cryptography.X509Certificates;
Using System.Net;
Using System.IO;
Using System.IO.Compression;
Using System.Text.RegularExpressions;
Using System.Web.Script.Serialization;
Namespace IP
{
Class Program
{
static void Main (string[] args)
{
string key = "***********************************";
String phone = "137 ...";
String url = "http://apis.haoservice.com/mobile?phone=" + Phone + "&key=" + key;
WebClient WC = new WebClient ();
Wc. Encoding = Encoding.UTF8;
String str = WC. downloadstring (URL);
Console.WriteLine (str);
Console.readkey ();
}
}
}
Phone attribution to query demo code