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", "YOUR_API_KEY");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본문: raw,15리디렉션: 'follow'16};1718fetch("https://api.quicknode.com/ipfs/rest/v1/gateway", requestOptions)19.그런 다음(응답 => response.text())20.그런 다음(결과 => console.log(result))21.catch(오류 => console.log('error', error));22
1var myHeaders = new Headers();2myHeaders.추가("x-api-key", "YOUR_API_KEY");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본문: raw,15리디렉션: 'follow'16};1718fetch("https://api.quicknode.com/ipfs/rest/v1/gateway", requestOptions)19.그런 다음(응답 => response.text())20.그런 다음(결과 => console.log(result))21.catch(오류 => console.log('error', error));22
1import 요청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': 'YOUR_API_KEY',13'Content-Type': 'application/json'14}1516답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)1718인쇄(응답.text)19
1import 요청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': 'YOUR_API_KEY',13'Content-Type': 'application/json'14}1516답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)1718인쇄(응답.text)19
1require "uri"2require "json"3require "net/http"45url = URI("https://api.quicknode.com/ipfs/rest/v1/gateway")67https = Net::HTTP.new(url.호스트, url.포트)8https.use_ssl = true910요청 = 순::HTTP::POST.새(URL)11요청["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.요청(요청)20응답을 넣습니다.read_body
1require "uri"2require "json"3require "net/http"45url = URI("https://api.quicknode.com/ipfs/rest/v1/gateway")67https = Net::HTTP.new(url.호스트, url.포트)8https.use_ssl = true910요청 = 순::HTTP::POST.새(URL)11요청["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.요청(요청)20응답을 넣습니다.read_body