Hi,
I tried the following http GET calls but always returned the same error "{"success":false,"type":"error","code":401,"error":"Token not valid"}"
1. use invite in the header
curl -X 'GET' \
'https://api.beds24.com/v2/authentication/setup' \
-H 'accept: application/json' \
-H 'invite: <valid_invite_code>'
2. use inviteCode in the header
curl -X 'GET' \
'https://api.beds24.com/v2/authentication/setup' \
-H 'accept: application/json' \
-H 'inviteCode: <valid_invite_code>'
3. use Invite in the header
curl -X 'GET' \
'https://api.beds24.com/v2/authentication/setup' \
-H 'accept: application/json' \
-H 'Invite: <valid_invite_code>'
4. use InviteCode in the header
curl -X 'GET' \
'https://api.beds24.com/v2/authentication/setup' \
-H 'accept: application/json' \
-H 'InviteCode: <valid_invite_code>'
API Version 2.0 - how to use the invite code with GET /authentication/setup
-
- Posts: 16
- Joined: Thu Jun 25, 2020 2:20 am
Hi,
The invite code should be in a header called "code" like this:
curl -X 'GET' \
'https://beds24.com/api/v2/authentication/setup' \
-H 'accept: application/json' \
-H 'code: 123'
You can try it here https://beds24.com/api/v2/#/Authenticat ... tion_setup
The invite code should be in a header called "code" like this:
curl -X 'GET' \
'https://beds24.com/api/v2/authentication/setup' \
-H 'accept: application/json' \
-H 'code: 123'
You can try it here https://beds24.com/api/v2/#/Authenticat ... tion_setup