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 } ] ] } } }

--

--

--

Focusing on cybersecurity and no code writing, many other hobbies here: https://johntuckner.me

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

AppWorkSchool week_3_thu

The VulcanJS Framework

Insight into Reason with Sean Grove

PDF Visual Regression Testing — ‘The PuppetMaster’ Approach

How I solved the pyramid algorithm in JavaScript

The Basics Of Chrome DevTools

“Hello, Again”

How To Properly Handle Navigation in a React App

Person consulting map

Set up Angular Material Custom Theme in a web application with few steps 🎈🎈🎆

Angular material theme

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
Tuckner

Tuckner

Focusing on cybersecurity and no code writing, many other hobbies here: https://johntuckner.me

More from Medium

Saleor 3.1: Gift Cards, Click & Collect, improved extensibility

Admin privileges and access

Seamless process automation with Server Side Triggers — UiPath

Thoughts about low/no code and vendor lock-in