Get your invite link
curl --request GET \
--url https://idle.api.datacircle.dev/me/invites/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://idle.api.datacircle.dev/me/invites/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://idle.api.datacircle.dev/me/invites/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://idle.api.datacircle.dev/me/invites/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://idle.api.datacircle.dev/me/invites/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://idle.api.datacircle.dev/me/invites/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://idle.api.datacircle.dev/me/invites/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"invite_link": "<string>",
"signed_up": 123,
"needed": 123,
"unlocks": "<string>",
"unlocks_ranks": [
"<string>"
]
}Datacircle
Get your invite link
Your invite link and how many people you invited signed up. What they unlock: unlocks and unlocks_ranks below, and Files.
GET
/
me
/
invites
/
Get your invite link
curl --request GET \
--url https://idle.api.datacircle.dev/me/invites/ \
--header 'Authorization: Bearer <token>'import requests
url = "https://idle.api.datacircle.dev/me/invites/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://idle.api.datacircle.dev/me/invites/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://idle.api.datacircle.dev/me/invites/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://idle.api.datacircle.dev/me/invites/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://idle.api.datacircle.dev/me/invites/")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://idle.api.datacircle.dev/me/invites/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"invite_link": "<string>",
"signed_up": 123,
"needed": 123,
"unlocks": "<string>",
"unlocks_ranks": [
"<string>"
]
}Authorizations
Your API key: Authorization: Bearer <your API key>. Authorization: Token <your API key> works too.
Response
200 - application/json
{"invite_link": ..., "signed_up": 0, "needed": 3, "unlocks": ..., "unlocks_ranks": ["coop", "us_50m"]}
Your own signup link: whoever signs up through it is your invitee.
How many people you invited have signed up and verified their email. People on your own email domain and deactivated accounts don't count.
How many signed-up invitees unlock the files in unlocks_ranks.
What reaching needed unlocks, in words, and that 50 dollar credits bought unlock only the co-op file.
The ranks in GET /files/ that reaching needed unlocks.