请求地址
名称是否必须示例值说明
请求地址UTF-8http://dc.28inter.com/sms.aspx

如果服务器不支持解析,

请联系技术人员进行协助处理!

请求参数
名称是否必须示例值描述
发送任务命令必须固定设置为:send设置为固定的:send
帐户                必须28inter注册或系统管理员分配获取,登陆账号
密码    必须123456    注册或系统管理员分配获取,登陆密码
用户ID    必须1001   注册或系统管理员分配获取,账户ID
发送号码必须13000000000,13000000001短信接收号码。支持单个或多个手机号码,传入号码为11位手机号码,不能加0或86。群发短信需传入多个号码,以英文逗号分隔,一次调用最多传入200个号码示例:13000000000,13000000001
发送内容必须【创信信息】您的验证码是:123456

发送短信的内容,整体做用urlencode。短信的格式为:【签名】放在内容的最前方。
示范:【创信信息】您本次注册的验证码是:888888,
其中签名可根据自己公司的名称或简称自定义,字数为2-8字,不可以是纯数字,电话号码或者网址,不可以是无意义的签名,比如【大家好】;【哈哈哈】;【提示】;【测试】等
正确示例:【创信信息】,【京东】,【百度】,【工商银行】
错误示例:【你好】,【通知】,【测试一下】,【哈哈哈】,【123123】

sendtime可选2000-12-31 00:00:10短信定时发送时间。不设置默认为立即发送。格式为:YYYY-MM-DD HH:MM:SS
rt可选json固定值 json,不填则为XML格式返回

 

OBJECTC实例

NSString *httpUrl = @http://dc.28inter.com/sms.aspx
NSString *httpArg = @"action=send&rt=json&userid=userid&account=account&password=password&mobile=mobile&content=content"
[self request: httpUrl withHttpArg: httpArg];

-(void)request: (NSString*)httpUrl withHttpArg: (NSString*)HttpArg  {
NSString *urlStr = [[NSString alloc]initWithFormat: @"%@?%@", httpUrl, HttpArg];
NSURL *url = [NSURL URLWithString: urlStr];
NSMutableURLRequest *request = [[NSMutableURLRequest alloc]initWithURL: url cachePolicy: NSURLRequestUseProtocolCachePolicy timeoutInterval: 10];
[request setHTTPMethod: @"GET"];
[NSURLConnection sendAsynchronousRequest: request
queue: [NSOperationQueue mainQueue]
completionHandler: ^(NSURLResponse *response, NSData *data, NSError *error){
if (error) {
NSLog(@"Httperror: %@%ld", error.localizedDescription, error.code);
} else {
NSInteger responseCode = [(NSHTTPURLResponse *)response statusCode];
NSString *responseString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
NSLog(@"HttpResponseCode:%ld", responseCode);
NSLog(@"HttpResponseBody %@",responseString);
              }
      }
}

微信

公众号

服务热线
在线咨询