Get your key at
https://developers.amadeus.com/
Editor:
https://bubble.io/page?id=ncv-demos4&test_plugin=1726150843516x222315947202707460_current&tab=tabs-1&name=indexDemo:
https://ncv-demos4.bubbleapps.io/version-test/amadeusStep 1: Install the Plugin
Navigate to the Plugins tab in your Bubble editor.
Click on Add Plugins and search for Amadeus API Plugin.
Click Install to add the plugin to your app.
Step 2: Configure API Credentials
Before making any API requests, you'll need your Amadeus Client ID and Client Secret.
Go to Plugin Settings.
Enter your Client ID and Client Secret from the Amadeus developer portal.
Save the settings.
Step 3: Generate Access Token
This plugin provides two options for generating access tokens.
Option 1: Single-Use Access Token (Client-Side)
You can set up a workflow to generate the access token every time you need to make a call.
Go to the Workflow tab.
Add an action to Generate Access Token from the plugin.
Use the access token output in your API requests (e.g., for searching flight offers).
Option 2: Multi-Use Access Token (Server-Side)
For more secure operations:
Schedule a workflow that runs on the server to generate and store the access token (e.g., every 30 minutes).
Store the access token in a Custom State or Database.
Use the stored token for all API calls without re-exposing your client_secret.
Step 4: Make API Requests (Example: Flight Offers)
Once the access token is generated, you can make requests to the Amadeus API, such as searching for flight offers.
Go to the Design tab.
Create a form where users can input flight details like departure city, destination city, dates, etc.
Set up a workflow to make a Flight Offer Search API request using the plugin.
Display the flight offers in a repeating group or any other visual component.