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.append("x-api-key", "YOUR_API_KEY");3myHeaders.追加("Content-Type", "application/json");45var 原始 = JSON.stringify({6"name": "YOUR_GATEWAY_NAME",7"isPrivate": false,8"isEnabled": false9});1011var requestOptions = {12方法: 'POST',13標題: myHeaders,14正文: 原始,15重定向: '追蹤'16};1718fetch("https://api.quicknode.com/ipfs/rest/v1/gateway", requestOptions)19.接著(回應 => response.text())20.接著(結果 => 控制台.log(結果))21.catchcatch(錯誤 => console.log('error', error));22
1var myHeaders = new Headers();2myHeaders.append("x-api-key", "YOUR_API_KEY");3myHeaders.追加("Content-Type", "application/json");45var 原始 = JSON.stringify({6"name": "YOUR_GATEWAY_NAME",7"isPrivate": false,8"isEnabled": false9});1011var requestOptions = {12方法: 'POST',13標題: myHeaders,14正文: 原始,15重定向: '追蹤'16};1718fetch("https://api.quicknode.com/ipfs/rest/v1/gateway", requestOptions)19.接著(回應 => response.text())20.接著(結果 => 控制台.log(結果))21.catchcatch(錯誤 => console.log('error', error));22
1匯入 請求2匯入 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': 'YOUR_API_KEY',13「Content-Type」: 'application/json'14}1516回應 = 請求.請求("POST", url, headers=headers, data=有效載荷)1718列印(回應.text)19
1匯入 請求2匯入 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': 'YOUR_API_KEY',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.主機, 網址.port)8https.use_ssl = true910請求 = 淨額::HTTP::POST.新增(網址)11request["x-api-key"] = "YOUR_API_KEY"12請求["Content-Type"] = "application/json"13請求。主體 = JSON.dump({14"name": "YOUR_GATEWAY_NAME",15"isPrivate": false,16"isEnabled": false17})1819回應 = https.請求(請求)20puts 回應。read_body
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://api.quicknode.com/ipfs/rest/v1/gateway")67https = 網::HTTP.new(url.主機, 網址.port)8https.use_ssl = true910請求 = 淨額::HTTP::POST.新增(網址)11request["x-api-key"] = "YOUR_API_KEY"12請求["Content-Type"] = "application/json"13請求。主體 = JSON.dump({14"name": "YOUR_GATEWAY_NAME",15"isPrivate": false,16"isEnabled": false17})1819回應 = https.請求(請求)20puts 回應。read_body