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.

generate code link

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.

languages dropdown

Supported languages/frameworks

Postman currently supports the following options:

Language**Framework**HTTPNone (Raw HTTP request)CLibCurlcURLNone (Raw cURL command)C#RestSharpGoBuilt-in http packageJavaOkHttpJavaUnirestJavaScriptjQuery AJAXJavaScriptBuilt-in XHRNodeJSBuilt-in http moduleNodeJSRequestNodeJSUnirestObjective-CBuilt-in NSURLSessionOCamlCohttpPHPHttpRequestPHPpecl_httpPHPBuilt-in curlPythonBuilt-in http.client (Python 3)PythonRequestsRubyBuilt-in NET::HttpShellwgetShellHTTPieShellcURLSwiftBuilt-in NSURLSession

results matching ""

    No results matching ""