v1/gateway REST API Endpoint
身體參數
名稱
字串
必填
載入中...
isPrivate
布林值
載入中...
isEnabled
布林值
載入中...
退貨
id
整數
載入中...
uuid
字串
載入中...
createdAt
字串
載入中...
updatedAt
字串
載入中...
名稱
字串
載入中...
網域
字串
載入中...
狀態
字串
載入中...
isPrivate
布林值
載入中...
isEnabled
布林值
載入中...
請求
1curl --location --request POST 'https://api.quicknode.com/ipfs/rest/v1/gateway' \2--header 'x-api-key: YOUR_API_KEY' \3--標頭 'Content-Type: application/json' \4--data-raw ' {5"name": "YOUR_GATEWAY_NAME",6"isPrivate": false,7"isEnabled": false8}'9
1curl --location --request POST 'https://api.quicknode.com/ipfs/rest/v1/gateway' \2--header 'x-api-key: YOUR_API_KEY' \3--標頭 'Content-Type: application/json' \4--data-raw ' {5"name": "YOUR_GATEWAY_NAME",6"isPrivate": false,7"isEnabled": false8}'9
1var myHeaders = new Headers();2myHeaders.追加("x-api-key", "您的 API 金鑰");3myHeaders.追加("Content-Type", "application/json");45var raw = JSON.stringify({6"name": "YOUR_GATEWAY_NAME",7"isPrivate": false,8"isEnabled": false9});1011var requestOptions = {12方法: 'POST',13標題: myHeaders,14正文: 原始,15redirect: 'follow'16};1718fetch("https://api.quicknode.com/ipfs/rest/v1/gateway", requestOptions)19.then(response => response.text())20.then(result => console.log(result))21.catch(error => console.log('error', error));22
1var myHeaders = new Headers();2myHeaders.追加("x-api-key", "您的 API 金鑰");3myHeaders.追加("Content-Type", "application/json");45var raw = JSON.stringify({6"name": "YOUR_GATEWAY_NAME",7"isPrivate": false,8"isEnabled": false9});1011var requestOptions = {12方法: 'POST',13標題: myHeaders,14正文: 原始,15redirect: 'follow'16};1718fetch("https://api.quicknode.com/ipfs/rest/v1/gateway", requestOptions)19.then(response => response.text())20.then(result => console.log(result))21.catch(error => console.log('error', error));22
1匯入 請求2import json34url = "https://api.quicknode.com/ipfs/rest/v1/gateway"56有效載荷 = json.dumps({7"name": "YOUR_GATEWAY_NAME",8"isPrivate": False,9"isEnabled": False10})11標題 = {12'x-api-key': '您的 API 金鑰',13「Content-Type」: 'application/json'14}1516回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)1718列印(回應.text)19
1匯入 請求2import json34url = "https://api.quicknode.com/ipfs/rest/v1/gateway"56有效載荷 = json.dumps({7"name": "YOUR_GATEWAY_NAME",8"isPrivate": False,9"isEnabled": False10})11標題 = {12'x-api-key': '您的 API 金鑰',13「Content-Type」: 'application/json'14}1516回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)1718列印(回應.text)19
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://api.quicknode.com/ipfs/rest/v1/gateway")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)11請求["x-api-key"] = "您的 API 金鑰"12請求["Content-Type"] = "application/json"13請求。正文 = JSON.dump({14"name": "YOUR_GATEWAY_NAME",15"isPrivate": false,16"isEnabled": false17})1819回應 = https.請求(請求)20將回應。read_body
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://api.quicknode.com/ipfs/rest/v1/gateway")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)11請求["x-api-key"] = "您的 API 金鑰"12請求["Content-Type"] = "application/json"13請求。正文 = JSON.dump({14"name": "YOUR_GATEWAY_NAME",15"isPrivate": false,16"isEnabled": false17})1819回應 = https.請求(請求)20將回應。read_body