Generate OAuth Token using Javascript

oauth

#1

I am using Ads Api “https://ads-api.twitter.com/4/stats/accounts/account_id?entity=CAMPAIGN
I can access my api using postman.
Can anyone help with the code to generate Outh token in javascript.
Thanks.


#2

Hi @snigdhaJogdand ,

You should try one of OSS JS OAuth libraries such as:

Best,
Shohei


#3

Thanku!