I would like to understand where to start from, in the following scenario, when I would like to integrate two services which are (Workfront and Freshservice) both have Rest APIs.
For example, I have a ticket in Freshservice that has a Task within it to de-activate a user in Workfront, I would like the program to take the name of the user who needs to be deactivated, the username has to be taken from the header of the ticket and make an API call, a deactivation API call in Workfront, I just would like to understand how to get started in Python, any advice would be highly appreciated. I wrote the API calls for Python but I would like to have some direction and advice.
From the documentation for deactivating a Workfront user you need to
PUTdata like this:So you need to know the
IDandnameof the Workfront user.You say
but you need the
nameto find the user in Workfront. If that's available in the ticket then you just search for the user using the Workfront API to get theirID, construct the above JSON andPUTit to the Workfront API to deactivate the user. If the name isn't in the ticket, perhaps the Freshservice API could be used to find it.There appears to be a python Workfront API client you could have a look at for abstracting access to the Workfront API.
So the flow might be: