Mikhail Pasechnik Posted May 2, 2020 Report Share Posted May 2, 2020 Hi, I created ftrack-golang-api https://github.com/conducte/ftrack-golang-api ! Inspired by ftrack-javascript-api Is anyone interested in it? Currently EventHub is not implemeted and Entity's represented throught golang map (dictionary) what is a little bit verbose. Basic usage of the api: package main import ( "flag" "github.com/conducte/ftrack-golang-api/ftrack" "log" ) func main() { apiKey := flag.String("api_key", "", "Ftrack Api Key from Settings -> Api Keys") apiUser := flag.String("api_user", "", "Ftrack Api User username from enabled user") serverUrl := flag.String("server_url", "", "Ftrack Server Url server url eg https://ftrack.com") flag.Parse() // Construct Session from command line arguments session, err := ftrack.NewSession(ftrack.SessionConfig{ ApiKey: *apiKey, ApiUser: *apiUser, ServerUrl: *serverUrl, }) if err != nil { log.Fatal(err) } // Query single Task from server result, err := session.Query("select name, parent.project from Task limit 1") if err != nil { log.Fatal(err) } task := result.Data[0] log.Println("Task: ", task) } Lorenzo Angeli 1 Link to comment Share on other sites More sharing options...
Lucas Correia Posted May 4, 2020 Report Share Posted May 4, 2020 Very cool! Thank you for sharing this! Regards, Lucas Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now