请求地址:/v5/Contracts/signedByKeyword.json
请求方式:POST
接口版本: 5.1.6
接口描述:
var url = "https://api-v2.1dq.com/v5/Contracts/signedByKeyword.json" var httpArg = "&open_id=2c6084c0-ad71-11ea-9664-0242ac320a0c&signed_data=[ { "seal_id":"deb4cf5e-ed14-11ea-aa79-0242ac110007", "keyword":"my-keyword-01" }, { "seal_id":"4cde8b9e-ebfa-11ea-b678-0242ac110011", "keyword":"my-keyword-02" } ]&words_id=&certification_code=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9&certification_type=mobile&org_id=abf447a8-ad71-11ea-b95e-0242ac320a0c" APISTORE(url, httpArg: httpArg) func APISTORE(httpUrl: String, httpArg: String) { var req = NSMutableURLRequest(URL: NSURL(string: httpUrl + "?" + httpArg)!) req.timeoutInterval = 6 req.HTTPMethod = "GET" NSURLConnection.sendAsynchronousRequest(req, queue: NSOperationQueue.mainQueue()) { (response, data, error) -> Void in let res = response as! NSHTTPURLResponse println(res.statusCode) if let e = error{ println("请求失败") } if let d = data { var content = NSString(data: d, encoding: NSUTF8StringEncoding) println(content) } } }