curl --request GET \
--url https://api.1club.ai/v1/platform/reports/promotion-eligibility \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.1club.ai/v1/platform/reports/promotion-eligibility"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.1club.ai/v1/platform/reports/promotion-eligibility', 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://api.1club.ai/v1/platform/reports/promotion-eligibility",
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://api.1club.ai/v1/platform/reports/promotion-eligibility"
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://api.1club.ai/v1/platform/reports/promotion-eligibility")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.1club.ai/v1/platform/reports/promotion-eligibility")
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{
"asOf": "2023-12-25",
"contactsWithBirthDate": 123,
"tracks": [
{
"trackId": 123,
"trackName": "<string>",
"sport": "<string>",
"description": "<string>",
"summary": {
"eligible": 123,
"stalled": 123,
"promoted": 123,
"medianDaysAtLevel": 123
}
}
],
"rowsScope": "contacts:read",
"total": 123,
"limit": 123,
"offset": 123,
"rows": [
{
"contactId": 123,
"name": "<string>",
"email": "<string>",
"trackId": 123,
"trackName": "<string>",
"currentLevel": {},
"history": [
{}
],
"promotion": {
"status": "eligible",
"nextLevel": {},
"sessions": 123,
"requiredSessions": 123,
"daysAtLevel": 123,
"medianDays": 123
},
"messageTo": {}
}
]
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}Who is ready for their next rank
The admin’s Members › Progression report: on each enabled progression track, every Billable Member holding a rank, with where they stand toward the next one: eligible (every requirement met), on track, stalled (longer at the rank than the track’s median stay) or no requirement, their sessions and days at the rank, and their promotion log. Each track’s summary counts the eligible and stalled members, and the promotions in the period when from and to are given.
Readable with analytics:read. The people need contacts:read as well: without it rows and total are null and the figures come alone, as get_members_report answers its lifecycle; rowsScope names the scope. Paged with limit and offset. Reports have their own limit of 20 requests a minute, on top of the platform’s.
curl --request GET \
--url https://api.1club.ai/v1/platform/reports/promotion-eligibility \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.1club.ai/v1/platform/reports/promotion-eligibility"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.1club.ai/v1/platform/reports/promotion-eligibility', 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://api.1club.ai/v1/platform/reports/promotion-eligibility",
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://api.1club.ai/v1/platform/reports/promotion-eligibility"
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://api.1club.ai/v1/platform/reports/promotion-eligibility")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.1club.ai/v1/platform/reports/promotion-eligibility")
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{
"asOf": "2023-12-25",
"contactsWithBirthDate": 123,
"tracks": [
{
"trackId": 123,
"trackName": "<string>",
"sport": "<string>",
"description": "<string>",
"summary": {
"eligible": 123,
"stalled": 123,
"promoted": 123,
"medianDaysAtLevel": 123
}
}
],
"rowsScope": "contacts:read",
"total": 123,
"limit": 123,
"offset": 123,
"rows": [
{
"contactId": 123,
"name": "<string>",
"email": "<string>",
"trackId": 123,
"trackName": "<string>",
"currentLevel": {},
"history": [
{}
],
"promotion": {
"status": "eligible",
"nextLevel": {},
"sessions": 123,
"requiredSessions": 123,
"daysAtLevel": 123,
"medianDays": 123
},
"messageTo": {}
}
]
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}{
"error": "<string>",
"code": "<string>",
"details": {}
}Authorizations
Query Parameters
Response
The report, with a page of its people
Was this page helpful?