Connect to a web service that uses an API token
The procedure of connecting the service via an API token is similar for most web services.
- Create an application on the web service’s website, as explained in the section Create a new application and obtain the API token in this article.
- Obtain the API Key or API token.
- Add Workfront Fusion’s HTTP > Make a Request module to your scenario.
- Set up the module according to the web service’s API documentation and running the scenario, as explained in the section Set up the HTTP module in this article.
This example connects to the Pushover notification service.
Create a new application and obtain the API token
There are many different ways that web services create and distribute API keys or API tokens. For instructions on obtaining an API key and token for your desired web service, go to the service’s website and search for “API key” or “API token.”
We are including instructions for obtaining a Pushover API key only as an example of what you might find.
- Log in to your Pushover account.
- Click Create an Application/API Token at the bottom of the page.
- Fill in the Application Information and click Create an Application.
- Store the provided API token in a safe place. You will need it for the Workfront Fusion HTTP > Make a Request module to connect to the desired web service (Pushover, in this case).
Set up the HTTP module
To connect a web service to your Workfront Fusion scenario, you need to use the HTTP > Make a request module in the scenario and set up the module according to the web service’s API documentation.
-
Add the HTTP > Make a Request module to your scenario.
-
To push a message using Workfront Fusion, set up the HTTP module as follows.
NOTE
These module settings correspond to the Pushover web service API documentation. Settings may be different for other web services. For example, the API token may be inserted to the Header and not to the Body field.