20171211-python Automation-Interface test-postman-psot

Source: Internet
Author: User

Interface 2: Login

Brief Description: Login interface

Request Url:http://api.nnzhp.cn/api/user/login

Request Method: Post

Parameters

Name of parameter Have to Type Description
Username Is String User name
passwd Is String Password

1, click Newtab, Request mode select Post, address bar input Http://api.nnzhp.cn/api/user/login

2, click Body, enter the corresponding parameter (parameter is key-value, in pairs appear, fill in need to note the type and length)

3, click Send To view the returned results

{
"Error_code": 0,
"Login_info": {
"Login_time": "20171211164031",
"Sign": "B4dc507efa37b94923e960df09e37f38",
"UserId": 8
}
}

"Error_code": 0, indicates successful login

20171211-python Automation-Interface test-postman-psot

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.