curl -X GET https://api.reveniq.com/v1/invoices/:id -H 'Authorization: YOUR_API_TOKEN_HERE' -H 'Content-Type: application/json'
require 'uri'require 'net/http'url = URI("https://api.reveniq.com/v1/invoices/:id")http = Net::HTTP.new(url.host, url.port)request = Net::HTTP::Get.new(url)request["Authorization"] = 'YOUR_API_TOKEN_HERE' response = http.request(request)puts response.read_body
HttpResponse<String> response = Unirest.get("https://api.reveniq.com/v1/invoices/:id") .header("Authorization", "YOUR_API_TOKEN_HERE") .asString();
import requests url = "https://api.reveniq.com/v1/invoices/:id" payload = ""headers = { 'Content-Type': "application/json", 'Authorization': "YOUR_API_TOKEN_HERE", } response = requests.request("GET", url, data=payload, headers=headers) print(response.text)
var data = JSON.stringify(false); var xhr = new XMLHttpRequest(); xhr.addEventListener("readystatechange", function () { if (this.readyState === 4) { console.log(this.responseText); }}); xhr.open("GET", "https://api.reveniq.com/v1/invoices/:id");xhr.setRequestHeader("Content-Type", "application/json");xhr.setRequestHeader("Authorization", "YOUR_API_TOKEN_HERE"); xhr.send(data);