postman生成curl和其他程序的代码

postman生成curl和其他程序的代码

参考地址: https://www.getpostman.com/docs/v6/postman/sending_api_requests/generate_code_snippets

 

Generate code snippets

Once you’ve finalized and saved your request in Postman, you might want to make the same request from your own application. Postman lets you generate snippets of code in various languages and frameworks that will help you do this. You’ll need to click the Code link under the blue Send button to open the GENERATE CODE SNIPPETS modal.

postman生成curl和其他程序的代码_第1张图片

Selecting a language

Use the dropdown menu to select a language - some languages have multiple options. This lets you select different frameworks from which to make your request.

postman生成curl和其他程序的代码_第2张图片

Supported languages/frameworks

Postman currently supports the following options:

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)