Get Collections
To see the collections related to your API key, send the following API call, providing it with the needed details:
curl -X 'GET' \
'https://api.oneai.com/clustering/v1/collections' \
-H 'accept: application/json' \
-H 'api-key: <YOUR-API-KEY-HERE>'
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://api.oneai.com/clustering/v1/collections',
'headers': {
'api-key': '<YOUR API KEY>'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
import requests
url = "https://api.oneai.com/clustering/v1/collections"
payload={}
headers = {
'api-key': '<YOUR API KEY>'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
The response should look something like this:
{
"collections": [
"my-first-analytics-collection"
]
}
Updated about 2 months ago