Changes

Jump to navigation Jump to search

API V2.0

424 bytes added, 07:46, 1 December 2021
no edit summary
Go to SETTINGS -> ACCOUNT -> ACCOUNT ACCESS and allow API access.
*The JSON functions can be created with a API and prop key which you set yourself in the Beds24 control panel {#fas:cog}} (SETTINGS)ACCOUNT and {{#fas:cog}} (SETTINGS) PROPERTIES > ACCESS
 
= Tokens =
= Scopes =
The "all" method may be used as a shortcut to grant access to all methods. For example "all:bookings" would allow for the reading, updating, creating and deleting of bookings.
 
= Examples =
== Authentication ==
=== Refreshing a token ===
Request:
<nowiki>curl -X 'GET' \
'https://api.example.com/v2/authentication/token' \
-H 'accept: application/json' \
-H 'refreshToken: Ea6DftE50aYYRe/qAd9SkQaSmTF6kaLQxH6gtRxO1h10yVC64d4qIj4BGiQOU+y5'</nowiki>
 
Response:
<nowiki>{
"token": "wEoJHQIwRrLwHqTqAsn0/XjzaZkVk4E8sSDwbRN2HKDlulkt6n7aHQCcvdqfX+y5",
"expiresIn": 3600
}</nowiki>

Navigation menu