with Claris FileMaker Server Data API and Needle?
Search a collection for relevant data chunks based on a query. See the documentation
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
needle: {
type: "app",
app: "needle",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://needle-ai.com/api/v1/collections`,
headers: {
"accept": `application/json`,
"x-api-key": `${this.needle.$auth.api_key}`,
},
})
},
})