Get member
curl --request GET \
--url https://api.gymdesk.com/members/{memberId} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.gymdesk.com/members/{memberId}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.gymdesk.com/members/{memberId}', 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.gymdesk.com/members/{memberId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": {
"id": 123,
"academyId": 999,
"firstName": "John",
"lastName": "Smith",
"photoUrl": {
"thumbnail": "https://files.gymdesk.com/3/member123-thumb.jpg",
"large": "https://files.gymdesk.com/3/member123-large.jpg"
},
"address": {
"line1": "123 Main Street",
"city": "San Francisco",
"postalCode": "<string>",
"country": "<string>",
"line2": "<string>",
"state": "<string>"
},
"primaryEmail": {
"email": "jsmith@example.com",
"optOut": false
},
"secondaryEmail": {
"email": "jsmith@example.com",
"optOut": false
},
"primaryPhone": {
"phone": "+14155552671",
"smsOptOut": false
},
"secondaryPhone": {
"phone": "+14155552671",
"smsOptOut": false
},
"smsOptIn": true,
"createdAt": "2023-11-07T05:31:56Z",
"checkInCode": "0123",
"creditBalance": {
"amount": 49.99,
"currency": "USD"
},
"tags": [
"vip",
"on-vacation"
],
"locale": "en_US",
"dateOfBirth": "2023-12-25",
"guardianName": "Jane Smith",
"billingName": "<string>",
"primaryFamilyMember": false,
"familyId": 123456,
"emailNotifications": {
"importantUpdates": true,
"billingNotifications": true,
"announcementsAndEvents": true,
"bookingNotifications": true
},
"leadSource": "Walk In",
"referredBy": {
"name": "Bob Smith",
"memberId": 9876
}
}
}{
"message": "Unauthorized",
"correlationId": "01890c1a-9b2d-7c3e-8f12-3456789abcde"
}{
"message": "Resource not found",
"correlationId": "01890c1a-9b2d-7c3e-8f12-3456789abcde"
}Members
Get member
Retrieve a single member by ID.
GET
/
members
/
{memberId}
Get member
curl --request GET \
--url https://api.gymdesk.com/members/{memberId} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.gymdesk.com/members/{memberId}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.gymdesk.com/members/{memberId}', 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.gymdesk.com/members/{memberId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"data": {
"id": 123,
"academyId": 999,
"firstName": "John",
"lastName": "Smith",
"photoUrl": {
"thumbnail": "https://files.gymdesk.com/3/member123-thumb.jpg",
"large": "https://files.gymdesk.com/3/member123-large.jpg"
},
"address": {
"line1": "123 Main Street",
"city": "San Francisco",
"postalCode": "<string>",
"country": "<string>",
"line2": "<string>",
"state": "<string>"
},
"primaryEmail": {
"email": "jsmith@example.com",
"optOut": false
},
"secondaryEmail": {
"email": "jsmith@example.com",
"optOut": false
},
"primaryPhone": {
"phone": "+14155552671",
"smsOptOut": false
},
"secondaryPhone": {
"phone": "+14155552671",
"smsOptOut": false
},
"smsOptIn": true,
"createdAt": "2023-11-07T05:31:56Z",
"checkInCode": "0123",
"creditBalance": {
"amount": 49.99,
"currency": "USD"
},
"tags": [
"vip",
"on-vacation"
],
"locale": "en_US",
"dateOfBirth": "2023-12-25",
"guardianName": "Jane Smith",
"billingName": "<string>",
"primaryFamilyMember": false,
"familyId": 123456,
"emailNotifications": {
"importantUpdates": true,
"billingNotifications": true,
"announcementsAndEvents": true,
"bookingNotifications": true
},
"leadSource": "Walk In",
"referredBy": {
"name": "Bob Smith",
"memberId": 9876
}
}
}{
"message": "Unauthorized",
"correlationId": "01890c1a-9b2d-7c3e-8f12-3456789abcde"
}{
"message": "Resource not found",
"correlationId": "01890c1a-9b2d-7c3e-8f12-3456789abcde"
}⌘I
