调用api举例

RegUserInfo作为例子

加密要求的参数

  • method (String, “RegUserInfo”)
  • Key (String, the Secret Key)
  • Time (DateTime, Current Time, in yyyyMMddHHmmss format)
  • Username (String)
  • CurrencyType (String)

method, Key and Time 是必需插入的.其他参数请根据每个API函数参数列表填入.

假设, Secret  Key 是 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX md5key 是 YYYYYYYY.

查询语句QS例子

例如 q=’j4tjorjwarfj3trwise0safrwg2wt4awari0fwjfeoh’

MD5字串构建签名signature 例子(QS + md5key + Time + Key)

例如 s = ‘1234567890abcdef’

POST 查询方法 (请求内容必须使用”Content-Type: application/x-www-form-urlencoded” 格式.)

q=j4tjorjwarfj3trwise0safrwg2wt4awari0fwjfeoh&s=1234567890abcdef

POST 到: http:///api/api.aspx

返回结果:

Leave a Reply