Expand my Community achievements bar.

Join us LIVE in San Francisco on November 14th for Experience Makers The Skill Exchange. Don't miss out on this free learning event!

API key with Python

Avatar

Level 2
Hi everyone, I'm looking for an example of Login using the API KEY in python. I couldn't find any good examples on how to execute the login with the key. After the login with the API Key, I'd also like to search a project. Thanks in advance for any assistance. Cheers Melanie Metcalfe Director of Project Support Foster Moore International Limited
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

API
2 Replies

Avatar

Level 10
Hi Melanie, Not sure how to implement this via python, but the basics should be as follows: https:// insertyoururl .my.workfront.com/attask/api/v8.0/project/search?name= Test &name_Mod=cicontains&fields= status,name,progressStatus &apiKey= yourapikey Using an API key, there is no separate login step. You just include the API key in your query. In the above example (an HTTP GET), this does a search for projects containing the word 'Test' and returned their name, status and progress status (and ID of course). Presuming you are familiar with the API explorer, you can work out what other search parameters you want to use and which fields you want to have returned. Hope that helps get you part way there. Regards, David Cornwell

Avatar

Level 10
Hello. You can get a python api sample script here. "https://github.com/Workfront">https://github.com/Workfront Polly Co