剑鱼论坛的新用户注册可以通过API来实现,这一篇我们就来介绍如何使用API来完成新用户的注册。
请求方式:POST
请求地址:http://域名/api
请求数据:
{
"data": [
{
"type": "signup",
"id": "0",
"attributes": {
"username": "用户名",
"password": "密码",
"email": "电子邮箱地址"
}
}
]
}
返回数据:
{
"data": [
{
"type": "signup",
"id": "2",
"attributes": {
"id": "2",
"nickname": "昵称",
"createtime": "注册时间"
}
}
]
}
以上返回数据里面的id是指新用户的id号,如果失败会返回errors错误信息。
论坛主帖
236
论坛跟帖
250
在线访客
0
今日主帖
0
今日跟帖
0
今日注册
0
288
http://jianyuluntan.com/gentie.html
http://jianyuluntan.com/postzan.html
http://jianyuluntan.com/postcai.html
http://jianyuluntan.com/postshoucang.html
http://jianyuluntan.com/gentiezan.html
http://jianyuluntan.com/gentiecai.html
http://jianyuluntan.com/huifu.html
http://jianyuluntan.com/xiugai.html
http://jianyuluntan.com/shanchugentie.html
1
XzA=
1
© 2019 - 2021 剑鱼论坛 版权所有
Powered by JianYuLunTan

976666861
http://jianyuluntan.com/feedback.html
http://jianyuluntan.com/qiandao.html
http://jianyuluntan.com/denglu.html
0
http://jianyuluntan.com/adenglu.html
0