v1/account/usage REST API Endpoint
查詢參數
startDate
字串
必填
載入中...
endDate
字串
必填
載入中...
interval
字串
必填
載入中...
退貨
interval
字串
載入中...
startTime
字串
載入中...
endTime
字串
載入中...
storageBytes
字串
載入中...
bandwidthBytes
字串
載入中...
請求
1curl --location 'https://api.quicknode.com/ipfs/rest/v1/account/usage?endDate=2023-07-27T22%3A18%3A08.000Z&interval=month&startDate=2023-06-27T22%3A18%3A08.000Z' \2--header 'x-api-key: 您的 API 金鑰'
1curl --location 'https://api.quicknode.com/ipfs/rest/v1/account/usage?endDate=2023-07-27T22%3A18%3A08.000Z&interval=month&startDate=2023-06-27T22%3A18%3A08.000Z' \2--header 'x-api-key: 您的 API 金鑰'
1var myHeaders = new Headers();2myHeaders.追加("x-api-key", "您的 API 金鑰");34var requestOptions = {5method: 'GET',6標題: myHeaders,7redirect: 'follow'8};910fetch("https://api.quicknode.com/ipfs/rest/v1/account/usage?endDate=2023-07-27T22%3A18%3A08.000Z&interval=month&startDate=2023-06-27T22%3A18%3A08.000Z", requestOptions)11.then(response => response.text())12.then(result => console.log(result))13.catch(error => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.追加("x-api-key", "您的 API 金鑰");34var requestOptions = {5method: 'GET',6標題: myHeaders,7redirect: 'follow'8};910fetch("https://api.quicknode.com/ipfs/rest/v1/account/usage?endDate=2023-07-27T22%3A18%3A08.000Z&interval=month&startDate=2023-06-27T22%3A18%3A08.000Z", requestOptions)11.then(response => response.text())12.then(result => console.log(result))13.catch(error => console.log('error', error));
1匯入 請求23url = "https://api.quicknode.com/ipfs/rest/v1/account/usage?endDate=2023-07-27T22%3A18%3A08.000Z&interval=month&startDate=2023-06-27T22%3A18%3A08.000Z"45有效載荷 = {}6標題 = {7'x-api-key': '您的 API 金鑰'8}910回應 = 請求.請求("GET", url, headers=headers, data=有效載荷)1112列印(回應.text)13
1匯入 請求23url = "https://api.quicknode.com/ipfs/rest/v1/account/usage?endDate=2023-07-27T22%3A18%3A08.000Z&interval=month&startDate=2023-06-27T22%3A18%3A08.000Z"45有效載荷 = {}6標題 = {7'x-api-key': '您的 API 金鑰'8}910回應 = 請求.請求("GET", url, headers=headers, data=有效載荷)1112列印(回應.text)13
1需要 "uri"2需要 "net/http"34url = URI("https://api.quicknode.com/ipfs/rest/v1/account/usage?endDate=2023-07-27T22%3A18%3A08.000Z&interval=month&startDate=2023-06-27T22%3A18%3A08.000Z")56https = 網::HTTP.new(url.主機, url.port)7https.use_ssl = true89請求 = 淨::HTTP::Get.new(url)10請求["x-api-key"] = "您的 API 金鑰"1112回應 = https.請求(請求)13將回應。read_body
1需要 "uri"2需要 "net/http"34url = URI("https://api.quicknode.com/ipfs/rest/v1/account/usage?endDate=2023-07-27T22%3A18%3A08.000Z&interval=month&startDate=2023-06-27T22%3A18%3A08.000Z")56https = 網::HTTP.new(url.主機, url.port)7https.use_ssl = true89請求 = 淨::HTTP::Get.new(url)10請求["x-api-key"] = "您的 API 金鑰"1112回應 = https.請求(請求)13將回應。read_body