Request
curl --request GET \
--url 'https://app.seelab.ai/api/predict/session/string' \
--header 'Accept: application/json' \
--header 'Authorization: Token <apiKey>'
const res = await fetch('https://app.seelab.ai/api/predict/session/string', {
"method": "GET",
"headers": {
"Accept": "application/json",
"Authorization": "Token <apiKey>"
}
});
const data = await res.json();
console.log(data);
require 'net/http'
require 'json'
uri = URI('https://app.seelab.ai/api/predict/session/string')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Accept'] = 'application/json'
request['Authorization'] = 'Token <apiKey>'
response = http.request(request)
puts response.read_body
<?php
$ch = curl_init('https://app.seelab.ai/api/predict/session/string');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
$headers = [
'Accept: application/json',
'Authorization: Token <apiKey>',
];
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
import requests
url = "https://app.seelab.ai/api/predict/session/string"
headers = {
"Accept": "application/json",
"Authorization": "Token <apiKey>",
}
response = requests.get(url, headers=headers)
print(response.json())