Using Client Credential OAuth in n8n

{ "nodes": [ { "parameters": { "authentication": "basicAuth", "requestMethod": "POST", "url": "https://api.twitter.com/oauth2/token", "options": {}, "queryParametersUi": { "parameter": [ { "name": "grant_type", "value": "client_credentials" } ] } }, "name": "Get Twitter Auth", "type": "n8n-nodes-base.httpRequest", "typeVersion": 1, "position": [ 460, 280 ], "credentials": { "httpBasicAuth": { "id": "3", "name": "Twitter Basic credential" } } }, { "parameters": { "url": "https://api.twitter.com/1.1/followers/list.json?cursor=-1&screen_name=tuckner&count=25", "options": {}, "headerParametersUi": { "parameter": [ { "name": "Authorization", "value": "=Bearer {{$node[\"Get Twitter Auth\"].json[\"access_token\"]}}" } ] } }, "name": "Get Twitter Followers", "type": "n8n-nodes-base.httpRequest", "typeVersion": 1, "position": [ 660, 280 ] } ], "connections": { "Get Twitter Auth": { "main": [ [ { "node": "Get Twitter Followers", "type": "main", "index": 0 } ] ] } } }

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store