/api/v1/fetch-customer-pricing
code examples curl request components \\ \ url https //app sparklayer io/api/v1/fetch customer pricing \\ \ header 'accept application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'components', headers myheaders, redirect 'follow' }; fetch("https //app sparklayer io/api/v1/fetch customer pricing", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" class net http components < net httprequest method = "components" request has body = false response has body = true end url = uri("https //app sparklayer io/api/v1/fetch customer pricing") https = net http new(url host, url port) https use ssl = true request = net http components new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = https request(request) puts response read body import requests import json url = "https //app sparklayer io/api/v1/fetch customer pricing" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("components", url, headers=headers, data=payload) print(response text) responses