之前闲暇有空,就去了解了下人人网的第三方登录的接口,呵呵..发布想了解的都了解下. 一.   REST接口模式 使用HTTP post 协议or HTTP get 协议发出请求. HTTP 协议同REST服务器通信. Java Struts 1.2 .do 的模式请求. 代码:
 1.URL编码的示例代码(java): value =,"UTF-8")
2.Content-Type: header of application/x-www-form-urlencoded 得将根据post or get协议发送的参数key = value 转为utf-8编码. 当发送请求的同时,往session中存入的参数一样要转为utf-8编码. Admin.getAllocation 接口
Required Name Type Description
required api_key string 申请应用时分配的api_key,调用接口时候代表应用的唯一身份。
method string admin.getAllocation
call_id float 当前调用请求队列号,建议使用当前系统时间的毫秒值。
sig string 它是由当前请求参数和secretKey的一个MD5值, 有关签名如何认证的文档,请查看校内REST如何认证你的应用
v string API的版本号,请设置成1.0
optional format string Response的格式,XML或者JSON,缺省值为XML。
<admin_getAllocation_response xmlns= xmlns:xsi= list="true" xsi:schemaLocation=> <notifications_per_day>158422</notifications_per_day> <requests_per_day>1000</requests_per_day> </admin_getAllocation_response> 返回JSON样例
{“notifications_per_day”:10000 ,“requests_per_day”:10000} XML节点解释
Name Description
<notifications_per_day> 表示一个用户当天可以发送通知的配额
<requests_per_day> 表示一个用户当天可以发送应用邀请的配额

} } } ?>

Words translated by CCJK


Request a call or contact us


    Call for professional assistance


    Click Here to leave us a message and be as detailed as possible.

We are Certified

Our Client Satisfaction

rating for previous quarte

    Inquiry Form

    Please take few minutes to fill
    inquiry form and get Free Quote

    Request a Call

    Click to receive Free Call, Our
    Representative will contact you

    Leave a Message

    Please leave us a message and
    be as detailed as possible

Over 95% of our clients recommend our language services to others

Copyright © CCJK Technologies Co., Ltd. 2000-2017. All rights reserved.