How to Successfully Integrate and Query the ftrack API using JS or Python?

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

https://ftrack-javascript-api.readthedocs.io/en/latest/tutorial.html?highlight=query#query-projects

Hi , I think you can ask @U05A7KLNALC to write a component code for you, make sure to refer to ftract API doc and the operation you want.

Or if you’re on Advanced/Business plan, you can try the AI Code Generation service: Slack

Or you can submit a ticket here to request for Ftract integration

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.

we need assistnance building an frack component to query ftrack using these docs Tutorial — ftrack javascript api 1.0.0 documentation
Getting started with the API | ftrack Documentation

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.