Jump to content

Search the Community

Showing results for tags 'javascript api'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Company news
    • General announcements
  • ftrack Studio (main app)
    • General discussion
    • Feature requests
    • API
    • Help
    • Actions and Widgets
    • ftrack Go
  • ftrack Review
    • General discussion
    • Feature requests
    • Help
  • Connect and plugins
    • General discussion
    • Connect package releases
    • Feature requests
    • Help
  • Advisory Forum
  • Tech preview
    • API
    • Early Access Integrations

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests

Found 5 results

  1. Hello, I'm begining to deal with the Ftrack api and since my idea is to make a Next.js app, I'm using the javascript API. Following the example codes, I can create a session and do queries without issues. But now I'm trying to use the eventhub and following the example code I'm doing: const session = new Session( "https://ftrackurl:443", "FTRACKUSER", "FTRACKKEY", { autoConnectEventHub: true } ); session.eventHub.isConnected();... So I'm including the port in the server url. When I try to run the application I'm receiving the following error: TypeError: Cannot read property 'port' of undefined I also tried: session.initializing.then(function () { console.info("API session initialized successfully."); session.eventHub.connect(); session.eventHub.isConnected(); }).catch(error => console.log(error)); but I got the same error. What am I doing wrong? Thanks
  2. Hi there, I'm currently integrating ftrack into some existing processes on our side. One step is that a client can use a web-interface from us where she/he may set some things approved/unapproved. I'd like to get a direct feedback of this one to an internally referenced task in ftrack. So, there is a update call that looks like that: { action: update entity_type: Task entity_key: [ #ID OF THE TASK# ] entity_data: { status: { __entity_type__: Status id: #ID OF THE STATUS I LIKE TO SET# } } } I get the response "Cannot set relationship to string value." (value error). Updating other things (like name, etc.) works (as I set the string directly), but it won't let me update the status. So, what am I doing wrong here? Thanks in advance! Chris
  3. Hey there, as part of our integrations, we want to be able to setup entries in the 'overview calendar' for 'projects and users'. for example 'Add Leave' should be available. Ideally this should be done via external api-calls in javascript. by executing this: console.info(Object.keys(session.schemas)); for (schema in session.schemas) { console.info(session.schemas[schema]); } We found out, that there is something called: 'CalendarEvent'. Are we on the right track, playing with this? Since we don't know, how to deal with this, we shoot in every direction.. Is it possible to 'Add Leave' for a user via the javascript api? If yes, how is it done? We tried this: var query = 'select id from CalendarEvent'; But the result is: '(node:7332) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): ReferenceError: request is not defined' Any help/assistance/ideas are greatly appreciated! thanks in advance Tim
  4. Hey everyone, as part of our integration process we would like to be able to make api calls "from outside". Since we need to create a session for this, we noticed a difference between python and javascript api. On python side it is possible to create a session object without giving any parameters, if the corresponding environment-variables are set correctly. In javascript this seems to be not allowed! export class Session { /** * Construct Session instance with API credentials. * * @param {string} serverUrl - ftrack server URL * @param {string} apiUser - ftrack username for API user. * @param {string} apiKey - User API Key * @param {Object} options - options * @param {Boolean} [options.autoConnectEventHub=false] - Automatically connect to event hub, * @param {Array|null} [options.serverInformationValues=null] - List of server information values to retrieve. * @param {Object} [options.eventHubOptions={}] - Options to configure event hub with. * * @constructs Session */ constructor( serverUrl, apiUser, apiKey, { autoConnectEventHub = false, serverInformationValues = null, eventHubOptions = {}, clientToken = null, } = {} ) { if (!serverUrl || !apiUser || !apiKey) { throw new Error( 'Invalid arguments, please construct Session with ' + '*serverUrl*, *apiUser* and *apiKey*.' ); } . . . Why do we have the option to create api-keys without giving it an api-user (on "ftrack-web-ui/system-preferences/API keys") when we cannot use them with the javascript api? How are we supposed to achieve external api-calls? thanks in advance Tim
  5. Hey there, we're currently trying to create a widget, that will list up some of our custom attributes, but for now its a struggle to get these. Maybe we just didn't look in the right place? With the python api its possible to get these values via the project: project['custom_attributes'] but with the javascript api, project don't seem to have these properties: console.info('all project properties: '); for(var key in currentProject) { console.info('project['+key+'] = ' + currentProject[key]); } gives us something like this: all project properties: index.js:62 project[context_type] = show index.js:62 project[__entity_type__] = Project index.js:62 project[id] = 19e2f1e4-01dd-11e8-ac42-7ab7a47c9dda index.js:62 project[name] = tims_test_321345 So if we cannot get the 'custom_attributes' via the project, where do we get them from? thanks an advance Tim
×
×
  • Create New...