Import as cURL

POST https://oauth.reddit.com/api/vote?redditWebClient=web2x&app=web2x-client-production&raw_json=1

If you want to inspect a request in Qodex, here’s a super simple way to import it as cURL from your browser.

You can also import data, like a Qodex Collection, Environment, data dump, or other data formats like a RAML / WADL / Swagger(v1/v2) / Open API 3.0 / Runscope file.

  1. Copy a cURL command: If you already have a cURL command, you can skip this step. We will use Chrome DevTools to inspect and select a request from a website. You can follow similar steps when using other web browsers. [Copy the cURL request from Chrome DevTools](https://i.imgur.com/LUbhl2B.png)
  2. Import cURL as text: click the Import button in the top left of the Qodex app. [Import button](https://i.imgur.com/uWLI0MT.png)
  3. Paste cURL into Qodex: Under the Paste Raw Text tab, paste your cURL command and confirm Import. [Paste the cURL as raw text](https://cdn-images-1.medium.com/max/1600/1*_2ENwXUm9rONc8X3yNBAqg.png)

You should now see your cURL command represented as a request in the Qodex graphical user interface.

Request Params

KeyDatatypeRequiredDescription
redditWebClientstring
appstring
raw_jsonnumber

Request Body

[{"name"=>"id", "value"=>"t3_a737zu", "datatype"=>"string"}, {"name"=>"dir", "value"=>"1", "datatype"=>"number"}, {"name"=>"api_type", "value"=>"json", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Postman-Tokenstring
acceptstring
accept-encodingstring
accept-languagestring
authoritystring
authorizationstring
cache-controlstring
content-typestring
originstring
refererstring
user-agentstring
x-reddit-loidstring
x-reddit-sessionstring