Front has been writing some articles about the postman, we now should be simple to understand, in fact, there are many features postman, this should be everyone a little bit of digging out, quiet to share python script about a postman export
Postman export scripts
First postman now successfully written to fill in our interface information and parameter information. Click on the code page, select the script you want to export
Here python found postman derived using the library requests, this is a 3rd party library python, pip need to install, copy the contents copied directly to our pycharm above.
After copying click Run, found executed successfully, of course, if we are not satisfied with the system to the content, where we can own their own modifications to make their code more rigorous and beautiful
postman support other languages
Language | Framework |
---|---|
HTTP | None (Raw HTTP request) |
C | LibCurl |
cURL | None (Raw cURL command) |
C# | RestSharp |
Go | Built-in http package |
Java | OkHttp |
Java | Unirest |
JavaScript | jQuery AJAX |
JavaScript | Built-in XHR |
NodeJS | Built-in http module |
NodeJS | Request |
NodeJS | Unirest |
Objective-C | Built-in NSURLSession |
OCaml | Cohttp |
PHP | HttpRequest |
PHP | pecl_http |
PHP | Built-in curl |
Python | Built-in http.client (Python 3) |
Python | Requests |
Ruby | Built-in NET::Http |
Shell | wget |
Shell | HTTPie |
Shell | cURL |
Swift | Built-in NSURLSession |
postman exported under the simple understanding of code function, you never know when it is used on the ~ ~ ~ ~, thank you for the support of small partners ~~