Configure a custom authentication algorithm
Generate the custom data needed to authenticate to a web service by running script.
Avant de commencer
- JavaScript knowledge
- REST knowledge
- Target web service API knowledge
- Connection, credential, and alias knowledge
- Role required: Developer
Pourquoi et quand exécuter cette tâche
Use a connection and credential alias and custom authentication based algorithm for authentication.
Procédure
REST step with Twitter
In case of Twitter, you must ensure the following spokes or credentials are available:
- Access token
- Access token secret
- Consumer key
- Consumer secret
- Authentication Algorithm
Action: TwitterAuthAlgo.
Input REST step with Twitter as follows:
- Credentials Alias: The alias that is created for Twitter.
- Base URL: Base URL details from Twitter.
- HTTPS Method: In this case it is POST method. Posting a tweet.
- Query Parameters: Action as tweet.
You can test the action. The tweet is posted on the Twitter page.