import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
claris_filemaker_server_data_api: {
type: "app",
app: "claris_filemaker_server_data_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.claris_filemaker_server_data_api.$auth.api_url}/fmi/data/v2/databases/${this.claris_filemaker_server_data_api.$auth.database_name}/layouts`,
headers: {
Authorization: `Bearer ${this.claris_filemaker_server_data_api.$auth.oauth_access_token}`,
},
})
},
})
Claris FileMaker Server Data API uses OAuth authentication. When you connect your Claris FileMaker Server Data API account, Pipedream will open a popup window where you can sign into Claris FileMaker Server Data API and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Claris FileMaker Server Data API API.
Pipedream requests the following authorization scopes when you connect your account:
POST
{{custom_fields.api_url}}/fmi/data/v2/databases/{{custom_fields.database_name}}/sessions
POST
{{custom_fields.api_url}}/fmi/data/v2/databases/{{custom_fields.database_name}}/sessions
content-type: application/x-www-form-urlencoded
accept: application/json