Last active
August 6, 2023 08:41
-
-
Save robotdan/33f5834399b6b30fea2ae59e87823e1d to your computer and use it in GitHub Desktop.
OAuth v1 Authorization Builder
Hi
Firstly thank you for this :+1 , I have tried this to do normal twitter integraion and that works brilliantly. Somehow the image upload API for twiiter 1.1. fails which this OAuth header.
https://upload.twitter.com/1.1/media/upload.json
Any solution where is it going wrong ?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had issues with query parameters, specifically ones that had commas included for ex. source=api1,api2 etc. I took MichZem answer and improved it for it to correspond with oauth1 debugging tool http://lti.tools/oauth/
Main change was how I handled the query param encoding + added nonce generation.
Hope somebody finds this useful.