Fetch Customer Subscriptions
1 min
code examples curl request get \\ \ url 'https //api nue io/subscriptions?productdetail=full' \\ \ header 'accept application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //api nue io/subscriptions?productdetail=full", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //api nue io/subscriptions?productdetail=full") https = net http new(url host, url port) https use ssl = true request = net http get 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 //api nue io/subscriptions?productdetail=full" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // successful retrieval of customer subscriptions {}// partial success the subscriptions were returned, but at least one filter could not be applied, typically a filter combined with snapshotdate on a field that a snapshot recalculates the skipped filters are named in a filter not supported with snapshot entry in warnings // invalid request returned when a query parameter does not correspond to a field on the subscription object, when a filter value does not match its field's type (invalid filter value), or when productdetail is supplied without includes=product (invalid parameter combination)