Parameters
Query
Header
Response
{
"data": {
"totals": number,
"gateways": [
{
"name": "string",
"host": "string",
"type": "string",
"bandwidth": number,
"operation": "string",
"active": true
}
]
},
"status": "success"
}
curl --location --request GET 'https://api-ipfs.attoaioz.cyou/api/gateways/?offset=0&limit=10&type=all' \
--header 'pinning_api_key: KEY' \
--header 'pinning_secret_key: SECRET'
var axios = require('axios');
var config = {
method: 'get',
url: 'https://api-ipfs.attoaioz.cyou/api/gateways/?offset=0&limit=10&type=all',
headers: {
'pinning_api_key': 'KEY',
'pinning_secret_key': 'SECRET'
}
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
import requests
url = "https://api-ipfs.attoaioz.cyou/api/gateways/?offset=0&limit=10&type=all"
payload={}
headers = {
'pinning_api_key': 'KEY',
'pinning_secret_key': 'SECRET'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api-ipfs.attoaioz.cyou/api/gateways/?offset=0&limit=10&type=all"
method := "GET"
client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("pinning_api_key", "KEY")
req.Header.Add("pinning_secret_key", "SECRET")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}
YOUR_API_KEY
and YOUR_SECRET_KEY
with your actual pinning API key and secret key.ON THIS PAGE