API key with Python | Community
Skip to main content
Level 2
March 29, 2018
Question

API key with Python

  • March 29, 2018
  • 2 replies
  • 981 views
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
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Level 10
March 29, 2018
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
Level 9
March 29, 2018
Hello. You can get a python api sample script here. "https://github.com/Workfront">https://github.com/Workfront Polly Co