v1/gateway REST API Endpoint
Körperparameter
Name
Zeichenkette
ERFORDERLICH
Wird geladen...
isPrivate
boolesch
Wird geladen...
isEnabled
boolesch
Wird geladen...
Rücksendungen
id
Ganzzahl
Wird geladen...
uuid
Zeichenkette
Wird geladen...
createdAt
Zeichenkette
Wird geladen...
updatedAt
Zeichenkette
Wird geladen...
Name
Zeichenkette
Wird geladen...
Domäne
Zeichenkette
Wird geladen...
Status
Zeichenkette
Wird geladen...
isPrivate
boolesch
Wird geladen...
isEnabled
boolesch
Wird geladen...
Anfrage
1curl --location --request POST 'https://api.quicknode.com/ipfs/rest/v1/gateway' \2--header 'x-api-key: YOUR_API_KEY' \3--header '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--header '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.anhängen("Content-Type", "application/json");45var raw = JSON.stringify({6"name": "YOUR_GATEWAY_NAME",7"isPrivate": false,8"isEnabled": false9});1011var requestOptions = {12Methode: 'POST',13Überschriften: myHeaders,14body: raw,15redirect: 'follow'16};1718fetch("https://api.quicknode.com/ipfs/rest/v1/gateway", requestOptions)19.dann(Antwort => Antwort.text())20.dann(Ergebnis => Konsole.log(Ergebnis))21.catch(Fehler => Konsole.log('Fehler', Fehler));22
1var myHeaders = new Headers();2myHeaders.append("x-api-key", "YOUR_API_KEY");3myHeaders.anhängen("Content-Type", "application/json");45var raw = JSON.stringify({6"name": "YOUR_GATEWAY_NAME",7"isPrivate": false,8"isEnabled": false9});1011var requestOptions = {12Methode: 'POST',13Überschriften: myHeaders,14body: raw,15redirect: 'follow'16};1718fetch("https://api.quicknode.com/ipfs/rest/v1/gateway", requestOptions)19.dann(Antwort => Antwort.text())20.dann(Ergebnis => Konsole.log(Ergebnis))21.catch(Fehler => Konsole.log('Fehler', Fehler));22
1import Anfragen2import json34url = "https://api.quicknode.com/ipfs/rest/v1/gateway"56Nutzlast = json.dumps({7"name": "YOUR_GATEWAY_NAME",8"isPrivate": False,9"isEnabled": False10})11Kopfzeilen = {12'x-api-key': 'YOUR_API_KEY',13„Content-Type“: 'application/json'14}1516Antwort = Anfragen.Anfrage("POST", url, headers=headers, Daten=Nutzdaten)1718Drucken(Antwort.text)19
1import Anfragen2import json34url = "https://api.quicknode.com/ipfs/rest/v1/gateway"56Nutzlast = json.dumps({7"name": "YOUR_GATEWAY_NAME",8"isPrivate": False,9"isEnabled": False10})11Kopfzeilen = {12'x-api-key': 'YOUR_API_KEY',13„Content-Type“: 'application/json'14}1516Antwort = Anfragen.Anfrage("POST", url, headers=headers, Daten=Nutzdaten)1718Drucken(Antwort.text)19
1require „uri“2require "json"3require „net/http“45url = URI("https://api.quicknode.com/ipfs/rest/v1/gateway")67https = Net::HTTP.new(url.host, URL.Port)8https.use_ssl = true910Anfrage = Netto::HTTP::POST.new(URL)11request["x-api-key"] = "YOUR_API_KEY"12Anfrage[„Content-Type“] = „application/json“13request.body = JSON.dump({14"name": "YOUR_GATEWAY_NAME",15"isPrivate": false,16"isEnabled": false17})1819Antwort = https.Anfrage(Anfrage)20gibt die Antwort aus.read_body
1require „uri“2require "json"3require „net/http“45url = URI("https://api.quicknode.com/ipfs/rest/v1/gateway")67https = Net::HTTP.new(url.host, URL.Port)8https.use_ssl = true910Anfrage = Netto::HTTP::POST.new(URL)11request["x-api-key"] = "YOUR_API_KEY"12Anfrage[„Content-Type“] = „application/json“13request.body = JSON.dump({14"name": "YOUR_GATEWAY_NAME",15"isPrivate": false,16"isEnabled": false17})1819Antwort = https.Anfrage(Anfrage)20gibt die Antwort aus.read_body
Hast du noch kein Konto?
Erstellen Sie Ihrenendpoint Sekundenschnelle und legen Sie los
Kostenlos loslegen