curl --request GET \
--url https://schoolmaker.co/api/v1/members \
--header 'Authorization: Bearer <token>'import requests
url = "https://schoolmaker.co/api/v1/members"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://schoolmaker.co/api/v1/members', 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://schoolmaker.co/api/v1/members",
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://schoolmaker.co/api/v1/members"
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://schoolmaker.co/api/v1/members")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://schoolmaker.co/api/v1/members")
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{
"members": [
{
"id": "<string>",
"email": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"last_seen_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"profile_picture_url": "<string>"
}
],
"pagination": {
"total_count": 123,
"total_pages": 123,
"current_page": 123
}
}{
"error": "Access denied"
}{
"error": "No data found"
}{
"error": "min_points must be a nonnegative number"
}List Members or Get a Member
Without id/email, returns a paginated list of members. If id or email is provided, returns a single member. List filters combine, with product_id taking precedence over offer_id.
curl --request GET \
--url https://schoolmaker.co/api/v1/members \
--header 'Authorization: Bearer <token>'import requests
url = "https://schoolmaker.co/api/v1/members"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://schoolmaker.co/api/v1/members', 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://schoolmaker.co/api/v1/members",
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://schoolmaker.co/api/v1/members"
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://schoolmaker.co/api/v1/members")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://schoolmaker.co/api/v1/members")
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{
"members": [
{
"id": "<string>",
"email": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"last_seen_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"profile_picture_url": "<string>"
}
],
"pagination": {
"total_count": 123,
"total_pages": 123,
"current_page": 123
}
}{
"error": "Access denied"
}{
"error": "No data found"
}{
"error": "min_points must be a nonnegative number"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
If provided, returns the member with this ID instead of a list.
If provided (and id not given), returns the member with this email instead of a list.
Minimum all-time points, inclusive. Members without points count as zero. Requires leaderboards to be enabled. Omit or leave blank for no minimum.
x >= 0Maximum all-time points, inclusive. Requires leaderboards to be enabled. Omit or leave blank for no maximum.
x >= 0Minimum current level, inclusive. Members without level history count as level 1. Requires levels to be enabled. Omit or leave blank for no minimum.
x >= 0Maximum current level, inclusive. Requires levels to be enabled. Omit or leave blank for no maximum.
x >= 0Minimum coaching usage, inclusive. Requires coaching_type_id. Measured in hours for timed coaching or sessions otherwise, including future published appointments. No appointments count as zero. Omit or leave blank for no minimum.
x >= 0Maximum coaching usage, inclusive. Requires coaching_type_id. Measured in hours for timed coaching or sessions otherwise, including future published appointments. No appointments count as zero. Omit or leave blank for no maximum.
x >= 0Filter by current offer access to this consultation category. Excludes expired, inactive or deleted accesses and deleted offers. Subscriptions must be active or trialing. Omit or leave blank for no filter.
Filter by current offer access to this live category. Excludes expired, inactive or deleted accesses and deleted offers. Subscriptions must be active or trialing. Omit or leave blank for no filter.
Filter by current offer access to this coaching type. Excludes expired, inactive or deleted accesses and deleted offers. Subscriptions must be active or trialing. Omit or leave blank for no filter.
Filter by current offer access to this AI coach. Excludes expired, inactive or deleted accesses and deleted offers. Subscriptions must be active or trialing. Omit or leave blank for no filter.
Was this page helpful?