Join family with code
curl --request POST \
--url https://prod-auth.tktchurch.com/api/v1/families/join \
--header 'Content-Type: application/json' \
--data '
{
"code": "<string>"
}
'import Foundation
let parameters = ["code": "<string>"] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://prod-auth.tktchurch.com/api/v1/families/join")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = ["Content-Type": "application/json"]
request.httpBody = postData
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({code: '<string>'})
};
fetch('https://prod-auth.tktchurch.com/api/v1/families/join', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://prod-auth.tktchurch.com/api/v1/families/join"
payload = { "code": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"family_id": "fam_01",
"status": "member"
}{
"error": "invalid_request",
"error_description": "Redirect URI not registered for this client"
}Join family with code
Join by family code.
POST
/
api
/
v1
/
families
/
join
Join family with code
curl --request POST \
--url https://prod-auth.tktchurch.com/api/v1/families/join \
--header 'Content-Type: application/json' \
--data '
{
"code": "<string>"
}
'import Foundation
let parameters = ["code": "<string>"] as [String : Any?]
let postData = try JSONSerialization.data(withJSONObject: parameters, options: [])
let url = URL(string: "https://prod-auth.tktchurch.com/api/v1/families/join")!
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.timeoutInterval = 10
request.allHTTPHeaderFields = ["Content-Type": "application/json"]
request.httpBody = postData
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({code: '<string>'})
};
fetch('https://prod-auth.tktchurch.com/api/v1/families/join', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://prod-auth.tktchurch.com/api/v1/families/join"
payload = { "code": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"family_id": "fam_01",
"status": "member"
}{
"error": "invalid_request",
"error_description": "Redirect URI not registered for this client"
}