“用户:wuhongjun”的版本间的差异

来自Blueidea
跳转至: 导航、 搜索
(→‎推送接口)
(以“== 老师发各种接口定义 == 手机api 推送api (注意:只是预定义,后续可能会修改个别接口)”替换内容)
 
(未显示同一用户的33个中间版本)
第1行: 第1行:
−
手机API接口
+
== 老师发各种接口定义 ==
−
 
+
[[手机api]]
−
== 登陆接口 ==
+
[[推送api]]
−
'''请求地址''':http://192.168.1.5/teach/api/login<br>
+
(注意:只是预定义,后续可能会修改个别接口)
−
'''请求方式''':POST<br>
+
−
'''请求参数''':
+
−
:{| class="wikitable" style="font-size:13px;"
+
−
! 参数名称
+
−
! 必选
+
−
! 类型及范围
+
−
! 说明
+
−
|-
+
−
!scope="row"|username
+
−
| true || string ||用户名或者email
+
−
|-
+
−
!scope="row"|authcode
+
−
| true || string || 密码经过md5加密后的字符串
+
−
|}
+
−
'''返回结果''':JSON格式
+
−
<source lang="javascript">
+
−
{
+
−
    "status":1,
+
−
    "error":"",         
+
−
    "user":{}
+
−
}
+
−
</source>
+
−
 
+
−
== 登出接口 ==
+
−
'''请求地址''':http://192.168.1.5/teach/api/logout<br>
+
−
'''请求方式''':POST<br>
+
−
'''请求参数''':
+
−
:{| class="wikitable" style="font-size:13px;"
+
−
! 参数名称
+
−
! 必选
+
−
! 类型及范围
+
−
! 说明
+
−
|-
+
−
!scope="row"|username
+
−
| true || string ||用户名或者email
+
−
|}
+
−
'''返回结果''':JSON格式
+
−
<source lang="javascript">
+
−
{
+
−
    "status":1,
+
−
    "error":""
+
−
}
+
−
</source>
+
−
 
+
−
== 密码修改接口 ==
+
−
'''请求地址''':http://192.168.1.5/teach/api/updatepwd<br>
+
−
'''请求方式''':POST<br>
+
−
'''请求参数''':
+
−
:{| class="wikitable" style="font-size:13px;"
+
−
! 参数名称
+
−
! 必选
+
−
! 类型及范围
+
−
! 说明
+
−
|-
+
−
!scope="row"|username
+
−
| true || string ||用户名或者email
+
−
|-
+
−
!scope="row"|oldpwd
+
−
| true || string ||旧密码
+
−
|-
+
−
!scope="row"|newpwd
+
−
| true || string ||新密码
+
−
|}
+
−
'''返回结果''':JSON格式
+
−
<source lang="javascript">
+
−
{
+
−
    "status":1,
+
−
    "error":""
+
−
}
+
−
</source>
+
−
 
+
−
 
+
−
== 用户信息读取 ==
+
−
'''请求地址''':http://192.168.1.5/teach/api/getuser<br>
+
−
'''请求方式''':POST<br>
+
−
'''请求参数''':
+
−
:{| class="wikitable" style="font-size:13px;"
+
−
! 参数名称
+
−
! 必选
+
−
! 类型及范围
+
−
! 说明
+
−
|-
+
−
!scope="row"|uid
+
−
| true || int||用户id
+
−
|}
+
−
'''返回结果''':JSON格式
+
−
<source lang="javascript">
+
−
{
+
−
    "status":1,
+
−
    "error":"",
+
−
    "user":{}
+
−
}
+
−
</source>
+
−
 
+
−
== 推送接口地址 ==
+
−
'''请求地址''':http://192.168.1.5/teach/api/push<br>
+
−
'''请求方式''':POST<br>
+
−
'''请求参数''':
+
−
:{| class="wikitable" style="font-size:13px;"
+
−
! 参数名称
+
−
! 必选
+
−
! 类型及范围
+
−
! 说明
+
−
|-
+
−
!scope="row"|token
+
−
| true || string||push平台的token
+
−
|-
+
−
!scope="row"|appid
+
−
| true || string||push平台的appid
+
−
|-
+
−
!scope="row"|apikey
+
−
| true || string||push平台的apikey
+
−
|-
+
−
!scope="row"|secretkey
+
−
| true || string||push平台的secretkey
+
−
|-
+
−
!scope="row"|id
+
−
| true || string||push平台的id
+
−
|-
+
−
!scope="row"|name
+
−
| true || string||push平台的name
+
−
|}
+
−
'''返回结果''':JSON格式
+
−
<source lang="javascript">
+
−
{
+
−
    "status":1,
+
−
    "error":"",
+
−
    "user":{}
+
−
}
+
−
</source>
+

2014-07-29T10:17:19的最后版本

老师发各种接口定义

手机api
推送api

(注意:只是预定义,后续可能会修改个别接口)