Travelpayouts Data API

Go
GO
curl --include --header "X-Access-Token: {{api_token}}" "{{url}}"
require 'rubygems' if RUBY_VERSION < '1.9'
require 'rest_client'

headers  = {:x_access_token => "{{api_token}}"}
response = RestClient.get "{{url}}", headers
puts response
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "{{url}}");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("X-Access-Token: {{api_token}}"));
$response = curl_exec($ch);
curl_close($ch);

var_dump($response);
from urllib2 import Request, urlopen
headers = {"X-Access-Token": "{{api_token}}"}
request = Request("{{url}}", headers=headers)
response_body = urlopen(request).read()
print response_body