某某茶叶有限公司欢迎您!
金沙棋牌在线 > 金沙棋牌在线 > API文档

API文档

时间:2019-12-02 23:30

在python开采进度中,常常会选用第三方包,或许放置的包。

Dash是叁个API文书档案浏览器( API Documentation Browser),以至代码片段管理工科具(Code Snippet Manager)。
它的文书档案库接受了docset格式,高档客商依据网站提供的教程,相当的轻巧就能够自行增多别的的恢宏文书档案,其实Dash在早先时期发表的时候,只扶助少之甚少的多少个文书档案浏览,好像独有Java、HTML、CSS这么些,是后来由此客商不断贡献,以致我及时的反映(Rails API正是自家透过Email与小编联系,伏乞加多的,小编极其nice),稳步扩展,才享有了那样宽广的语言、框架扶持。要增加API文书档案,张开软件配置分界面,切换成Docset选项卡就能够见到全数内置的文档列表,按需求活动下载即可(假设是慈爱创立的docset,双击就可以导入Dash)

Crazylark's

那么那么些包,具体有啥样选项,有怎样方法,你理解吗?下边介绍风流倜傥种万能格局。


Api Document

README ===if u wander more click here

 

https://kapeli.com/dash(官网)

Mobile number Authentication(Sign up)

行义务令:<注意,命令里python展现的API版本是基于那些来的,假设要翻看不一致版本的,请在那间分别>

Description

When user input his mobile number. Browser send a json make sure that this mobile has not been signed.

python -m pydoc -p 8000

Http request

POST http://localhost:port/users.json

你会看出这般的分界面:

Query Parameter

[
{
"mobile_number": 15908155675
}
]     

金沙棋牌在线 1

金沙棋牌在线,Message Authentication(Sign up)

 

Description

Server has send a massage to current user's mobile phone including a 6-bit authentic number. And user need to input this number correctly.

接下去访谈上述那几个地址:

Http request

POST http://localhost:port/users.json

金沙棋牌在线 2

Query Parameter

[
{
"mobile_number": 15908155675,
"message": 123456
}
]       

 

CD-key Authentication(Sign up)

能够观察,全部的安装包,API新闻都显得在此个分界面,大家找三个探求,selenium吧

Description

Make sure user has payed.

金沙棋牌在线 3

Http request

POST http://localhost:port/users.json

金沙棋牌在线 4

Query Parameter

[
{
"mobile_number": 15908155675,
"message": 123456,
"key": "FT73QBYUEWQ7"
}
]   

 

Sign up Authentication(Sign up)

 

Description

User has finished all input box correctly. And click the submit bottom.

Http request

POST http://localhost:port/users.json

Query Parameter

[
{
"mobile_number": 15908155675,
"message": 123456,
"key": "FT73QBYUEWQ7",
"password": "123789",
"passworde_comfirmation": "123789"
}
]   

Mobile number Authenticatiion(Log in)

Description

User wanna log in and input his mobile number.

Http request

POST http://localhost:port/sessions.json

Query Parameter

[
{
"mobile_number": 15908155675
}
]