This topic was automatically generated from Slack. You can find the original thread here.
hi guys, we are tinkering with the new ftrack integration and despite support from ftrack cant seem to get it working, we are trying a basic query to simply get started and cant master it hah acan you hhelp shed some light, the querry we are trying to make work is ; js or python
I understand you’re looking for help with the ftrack integration. To help you better, I’ll need more information about the specific operation you’re trying to perform using ftrack’s API. Please provide more details about the API endpoint you want to call and any required parameters. Once I have that information, I can help you write a Pipedream component code for your use case.
I understand you want to create a Pipedream component to query ftrack using their API. Based on the provided documentation, I can help you create a basic component to query projects in ftrack. Here’s a sample Pipedream component using the ftrack API: import { axios } from "@pipedream/platform"; export default defineComponent({ props: { apiKey: { type: "string", label: "API Key", secret: true, }, apiUrl: { type: "string", label: "API URL", default: "https://your-domain.ftrackapp.com", }, }, async run({ $ }) { const response = await axios(this, { method: "GET", url: `${this.apiUrl}/api`, headers: { "Content-Type": "application/json", "ftrack-api-key": this.apiKey, }, data: { action: "query_projects", }, }); return response.data; }, }); Replace your-domain in the apiUrl prop with your ftrack domain. This component requires your ftrack API key, which you can input when using the component in a workflow. Please note that this is a basic example, and you might need to modify it according to your specific requirements.