08. Generate code snippets for your Requests
Learn about the code generator for your API requests
After creating your request, and saving it in Firecamp. You might need to run the same request in your application. To help with this, Firecamp lets you generate snippets of code in various languages and frameworks. That, in turn, helps you implement, build and test faster.
Code link located below the word "REQUEST" in the request panel of the API app.
Navigate to the tab having your desired language or framework, some tabs having multiple options inside them to generate your code snippet with a particular framework/library.
Select the code snippet using your mouse, copy and paste it into your application code.
Firecamp currently supports the following options:
- C LibCurl
- Go Built-in HTTP package
- Java OkHttp
- Java Unirest
- NodeJS Native (HTTP module)
- NodeJS Request
- NodeJS Unirest
- Python Built-in http.client (Python 3)
- Python Requests
- Objective-C Built-in NSURLSession
- Ruby Built-in NET::Http
- Shell wget
- Shell HTTPie
- Shell cURL
- Swift Built-in NSURLSession
GIF of copy-pasting CURL into the terminal with firecamp