How to Get Twitter API KEY and OAuth Client ID and Client Secret

  Рет қаралды 41,259

Gomahamaya

Gomahamaya

Жыл бұрын

Learn To get a Twitter API key, OAuth client ID, and client secret, you will need to create a Twitter developer account and register a new application.
Go to / apps and log in with your Twitter account.
Click on the "Create an app" button.
Fill in the required fields for the application, including the name, description, and website.
Under the "Permissions" tab, select "Read, write, and direct messages" for the access level.
Under the "Keys and Tokens" tab, you will find your API key and API secret key. You can also generate an Access Token and Access Token Secret.
To get OAuth 2.0 client ID and client secret, you need to create a Project and then in that project you can create credentials for OAuth 2.0 Client ID and Client Secret.
Remember to keep your keys and tokens secure, and never share them with anyone.
-------------------------------------------------------------------------------------------------------
High Performance Hosting must try
Kinsta- www.gomahamaya.com/go/kinsta
fastcomet-www.gomahamaya.com/go/fastcom...
14 days free trail cloud hosting - www.gomahamaya.com/go/fastcom...
Bluehost- www.gomahamaya.com/go/bluehost
inmotion hosting - www.gomahamaya.com/go/inmotio...
-------------------------------------------------------------------------------------------------------
Donate to support our work- www.paypal.me/gomahamaya
donation id - rsahu4242@gmail.com
-------------------------------------------------------------------------------------------------------
Get in touch with us on Social Media.
Facebook: / gomahamaya
Twitter: / gomahamaya
--------------------------------------------------------------------------------------------------------
contact us on our website- www.gomahamaya.com/
--------------------------------------------------------------------------------------------------------

Пікірлер: 39
@ninubgmi
@ninubgmi 4 күн бұрын
Bro can you do it for BGMI login problem related with twitter
@nabeelasyed1034
@nabeelasyed1034 14 күн бұрын
What URL should we submit if it is a command or terminal-based application?
@tonyriddle7646
@tonyriddle7646 Ай бұрын
could you make a video for using twitter creds in postman
@QuickByte_20M
@QuickByte_20M Жыл бұрын
Helpful
@Eastcoast_Rds
@Eastcoast_Rds Жыл бұрын
Got everything working, but my bearer token is getting a 403 error , not sure why
@nastaran1010
@nastaran1010 6 ай бұрын
Can you continue with python to extract data?
@alexmercer8757
@alexmercer8757 8 ай бұрын
does this still work now that Twitter API is not free anymore
@user-rd4oo1jg5g
@user-rd4oo1jg5g 9 ай бұрын
Hello, how are you, there are applications that request a token, request that the client id and seceret key be sent, others an api token and a secret key, how is this different from, for example, sending user and pass?
@silentt2143
@silentt2143 Жыл бұрын
Thank you for this. Now how can I use those keys so that a user can sign into my website using Twitter?
@Gomahamaya
@Gomahamaya Жыл бұрын
which platform you are doing ?
@silentt2143
@silentt2143 Жыл бұрын
@@Gomahamaya Not sure what you mean so I’ll just say I’m using Windows 8 with google chrome and VS Code. All I need is a button that allows a user to sign in with their Twitter account so I can put their profile information on the page.
@Gomahamaya
@Gomahamaya Жыл бұрын
i means you are using javascript, python etc for js you can use this This is a format Login with Twitter this is will be you js code document.getElementById("myButton").addEventListener("click", function() { window.location = "api.twitter.com/oauth/authenticate?oauth_token="; }); // Redirect the user back to your app var queryParams = new URLSearchParams(window.location.search); var oauthToken = queryParams.get("oauth_token"); if (oauthToken) {window.location = "/";} now store the OAuth token, secret, and Twitter ID in database after successful login and create redirection of user after receiving the data
@silentt2143
@silentt2143 Жыл бұрын
@@Gomahamaya thanks for the js code. However I’m using the python framework flask. I’ve tried flask-dance and tweepy, but the documentation is too advanced for me.
@Gomahamaya
@Gomahamaya Жыл бұрын
I can give you rough example Your button html Login with Twitter js code - document.getElementById("login-button").addEventListener("click", function() { window.location = "/twitter/login"; }); Now python - import os import requests from urllib.parse import parse_qs, urlparse from flask import Flask, redirect, request, render_template app = Flask(__name__) @app.route('/twitter/login') def twitter_login(): # Request a temporary OAuth token oauth_response = requests.post( 'api.twitter.com/oauth/request_token', headers={ 'Authorization': 'OAuth oauth_callback="localhost:5000/twitter/callback"' } ) # Extract the temporary OAuth token from the response oauth_token = parse_qs(oauth_response.text)['oauth_token'][0] # Redirect the user to the Twitter authorization page return redirect(f'api.twitter.com/oauth/authenticate?oauth_token={oauth_token}') @app.route('/twitter/callback') def twitter_callback(): # Extract the temporary OAuth token from the query string query_string = request.query_string.decode() query_params = parse_qs(query_string) oauth_token = query_params['oauth_token'][0] oauth_verifier = query_params['oauth_verifier'][0] # Use the temporary OAuth token and verifier to request a permanent OAuth token and secret oauth_response = requests.post( 'api.twitter.com/oauth/access_token', headers={ 'Authorization': f'OAuth oauth_token={oauth_token}, oauth_verifier={oauth_verifier}' } ) # Extract the permanent OAuth token and secret, and the user's Twitter ID oauth_token, oauth_secret, user_id = [ parse_qs(oauth_response.text)[key][0] for key in ('oauth_token', 'oauth_token_secret', 'user_id') ] return redirect('/') if __name__ == '__main__': app.run()
@Lilian.Chidinma.Nwafor
@Lilian.Chidinma.Nwafor 10 ай бұрын
Can I use your website. I don't have one
@fadiakayla6358
@fadiakayla6358 Жыл бұрын
hello why i took long acceptation on application review?
@60hzXIX
@60hzXIX 6 ай бұрын
This video is so useful but Its a humble request to keep your mic a bit away as the mouth noises are too annoying.
@Gomahamaya
@Gomahamaya 6 ай бұрын
feedback noted and thank you for your time. Will definitely implement on future videos
@rajikothamasu2866
@rajikothamasu2866 Жыл бұрын
Hlo bro even after changing api key,secrets key i am getting 401 error to get dataset of tweets,,how to rectify the prblm,,does Twitter charges money ??
@isabellamartins902
@isabellamartins902 Ай бұрын
same issue i am having
@mybestieworld
@mybestieworld 16 күн бұрын
Hii sir
@user-ls3ds3fn4t
@user-ls3ds3fn4t 7 ай бұрын
I did not get how to get the login url. can someone please help?
@kalyansa8017
@kalyansa8017 Жыл бұрын
hii bro i couldnot able to create developer account can you please help me bro
@Gomahamaya
@Gomahamaya Жыл бұрын
Could you please tell me the error so i can check what is wrong with new accounts ? Its better share the screenshot why its rejected . i was going through documentation and found you can request the team for approval request developer-accounts@twitter.com . They will approve your account i don't think is a big issue . Just email them and share their response with us so other can get benefitted .
@MRStudioSiwan
@MRStudioSiwan Жыл бұрын
Facebook api ka video bnao bhai
@mohammedwaheed5840
@mohammedwaheed5840 11 ай бұрын
hello any one can extract email twitter ? from username ?
@Gomahamaya
@Gomahamaya 11 ай бұрын
Why people will signup to your business? First give them a reason
@aqrabraza6750
@aqrabraza6750 Жыл бұрын
Hi Brother, I am unable to create a Twitter developer account can you please make a video on how can i create it. I am trying to consume an API for Analysis Purposes. I looked through too many videos and solutions but I got a rejection from Twitter
@kalyansa8017
@kalyansa8017 Жыл бұрын
same bro please help
@kalyansa8017
@kalyansa8017 Жыл бұрын
@Aqrab bro please let me know if you find out anything
@Gomahamaya
@Gomahamaya Жыл бұрын
Could you please tell me the error so i can check what is wrong with new accounts ? Its better share the screenshot why its rejected . i was going through documentation and found you can request the team for approval request developer-accounts@twitter.com . They will approve your account i don't think is a big issue . Just email them and share their response with us so other can get benefitted .
@madhuparnapanja917
@madhuparnapanja917 Жыл бұрын
Hi sir can you pls pls help me for getting elevated access to my developer account They are not giving me access to elevated pls pls help me for my final yr project
@PavanKumar-uw7si
@PavanKumar-uw7si Жыл бұрын
@@madhuparnapanja917 hello did you got to know how to do this ? , i am in need of that now !!
@rexsmith9799
@rexsmith9799 Ай бұрын
Bro, your accent is too hard to understand.
@rohitray5947
@rohitray5947 Жыл бұрын
it showing We received your application. We’ll let you know when it’s done, or if we need any additional information from you by sending an email to....... after submitting the application.
@Gomahamaya
@Gomahamaya Жыл бұрын
rohit twitter added restriction on api , we can request them and then you need to wait . I don't have authority or else i would have provided you . I added all the resources in comment section for approval and added many reply you can read . Please send email to them.
How to create your own Twitter API app?
8:57
RADAAR
Рет қаралды 25 М.
Whyyyy? 😭 #shorts by Leisi Crazy
00:16
Leisi Crazy
Рет қаралды 20 МЛН
$10,000 Every Day You Survive In The Wilderness
26:44
MrBeast
Рет қаралды 139 МЛН
Купили айфон для собачки #shorts #iribaby
00:31
How to Access Data from the Twitter (X) API Using Tweepy
16:54
Gina Sprint
Рет қаралды 13 М.
How to get TWEETS by Python | Twitter API 2022
17:04
AI Spectrum
Рет қаралды 142 М.
How to Create Entire Website with ChatGPT (No Coding)
15:15
Website Learners
Рет қаралды 321 М.
OAuth 2.0 - a dead simple explanation
9:16
Jan Goebel
Рет қаралды 13 М.
Whyyyy? 😭 #shorts by Leisi Crazy
00:16
Leisi Crazy
Рет қаралды 20 МЛН