get Registries
Authorization: apiKey
name: x-api-key
in: header
type: apiKey
curl -L -X GET 'https://api.korewireless.com/omnicore/subscriptions/:subscriptionId/registries' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-H 'x-api-key: <API_KEY_VALUE>'
import requests
url = "https://api.korewireless.com/omnicore/subscriptions/:subscriptionId/registries"
payload={}
headers = {
'Accept': 'application/json',
'Authorization': 'Bearer <TOKEN>',
'x-api-key': '<API_KEY_VALUE>'
}
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.korewireless.com/omnicore/subscriptions/:subscriptionId/registries"
method := "GET"
client := &http.Client {
}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Accept", "application/json")
req.Header.Add("Authorization", "Bearer <TOKEN>")
req.Header.Add("x-api-key", "<API_KEY_VALUE>")
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))
}
const axios = require('axios');
let config = {
method: 'get',
url: 'https://api.korewireless.com/omnicore/subscriptions/:subscriptionId/registries',
headers: {
'Accept': 'application/json',
'Authorization': 'Bearer <TOKEN>',
'x-api-key': '<API_KEY_VALUE>'
}
};
axios(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
Last updated