
请求地址
名称是否必须示例值说明
请求地址
:9999/sms.aspx
如果服务器不支持解析,
将sms.kingtto.com改为101.201.41.194
请求参数
名称是否必须示例值描述
固定设置为:send

任务命令为:短信发送
account
注册获取;平台登陆账号。 点此注册>>
password
注册获取;平台登陆密码。 点此注册>>
注册获取,登陆后台合肥短信群发公司,在客户管理-我的信息中查看
13000000000,13000000001
短信接收号码。支持单个或多个手机号码,传入号码为11位手机号码,不能加0或+86。群发短信需传入多个号码,以英文逗号分隔,一次调用最多传入200个号码。示例:13000000000,13000000001
content

【凯信通】您的验证码是:123456
发送短信的内容,整体做urlencode.短信的格式为:【签名】放在内容的最前方。
示范:【凯信通】您本次注册的验证码是:888888,
其中“签名”可根据自己公司的名称或简称自定义,字数为2-8字合肥短信群发公司,不可以是纯数字、电话号码或者网址,不可以是无意义的签名,比如“大家好”“哈哈哈”“提示”等
正确示例:【凯信通】、【京东】、【百度】、【糯米团购】
错误示例:【你好】、【通知】、【测试一下】、【哈哈哈】、【123123】
sendtime
2000-12-31 00:00:10
短信定时发送时间。不设置默认为立即发送。格式为:YYYY-MM-DD HH:MM:SS

OBJECTC实例
NSString *httpUrl = @":9999/sms.aspx";
NSString *httpArg = @"action=send&userid=userid&account=account&password=password&mobile=mobile&content=content";
[self request: httpUrl withHttpArg: httpArg];
- (void)refreshwithaccesskeyid:(nsstring *)accesskeyid accesskeysecret:(nsstring *)accesskeysecret accesstoken:(nsstring *)accesstoken expiretime:(nsstring *)expiretime。- (void)webview:(wkwebview *)webview runjavascriptalertpanelwithmessage:(nsstring *)message initiatedbyframe:(wkframeinfo *)frame completionhandler:(void (^)(void))completionhandler {。- (void)loginwithusername:(nsstring *)username password:(nsstring*)password。
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(@"error from convolution %ld", error)。7.ld: library not found for -lmp3lameclang: error: linker command failed with exit code 1 (use -v to see invocation).。nslog(@'error loading shader: %@',error.localizeddescription)。
} else {
NSInteger responseCode = [(NSHTTPURLResponse *)response statusCode];
NSString *responseString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
NSLog(@"HttpResponseCode:%ld", responseCode);
NSLog(@"HttpResponseBody %@",responseString);
}
}];
}
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxinshuyu/article-103516-1.html
但慢慢的就有人开始说道了
泻做尸叫兽
但是偏偏三哥就是不开窍
真是两难