Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More than two key pairs? #35

Open
danimesq opened this issue Nov 22, 2021 · 5 comments
Open

More than two key pairs? #35

danimesq opened this issue Nov 22, 2021 · 5 comments

Comments

@danimesq
Copy link

danimesq commented Nov 22, 2021

CONSUMER_KEY=xxxxxxxxxxxxxxxxxxx
CONSUMER_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ACCESS_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ACCESS_TOKEN_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Which one of these pairs are API Key and API Key Secret that Twitter just gave?

And the other, how to find?

Twitter also generated a Bearer Token.

And how to login the screen name account?

@danimesq
Copy link
Author

@piroor

@danimesq
Copy link
Author

Figuring out.

API Key and API Key Secret are the Consumer Keys, according to the app page in the Dashboard.

About the ACCESS_TOKEN and ACCESS_TOKEN_SECRET, they aren't generated yet; so I have to click to generate.

@danimesq
Copy link
Author

danimesq commented Nov 22, 2021

Output:

{"errors":[{"message":"You currently have Essential access which includes access to Twitter API v2 endpoints only. If you need access to this endpoint, you’ll need to apply for Elevated access via the Developer Portal. You can learn more here: https://developer.twitter.com/en/docs/twitter-api/getting-started/about-twitter-api#v2-access-leve","code":453}]}

Update:

This is because the poster account is Essential, not Elevated. To apply for Elevated: https://developer.twitter.com/en/portal/products/elevated

@marcellodesales
Copy link

@danimesq Could you solve it??? I applied for Elevate... but I still don't have access... does it take long?

@marcellodesales
Copy link

Getting all Keys

  1. Go to your Projects & Apps
  2. Click in your desired Project -> App
  3. Click on the TAB Keys and tokens

Consumer tokens

  • The section Consumer Keys, subsection API Key and Secret
    • Click on button (Regenerate) Or click in Reveal

Access Tokens

  • The section Authentication Tokens, the subsection Access Token and Secret
    • click in the button (Regenerate)

marcellodesales added a commit to marcellodesales/0s-2s-ipfs-blockchain-tweet-nfts that referenced this issue Feb 2, 2022
This script was copied from https://github.com/piroor/tweet.sh

Go to https://developer.twitter.com/en/portal/products/elevated
to generate the keys.

1. The discussion on how to
piroor/tweet.sh#35 (comment)

2. Create file $ cat ~/.tweet.client.key
MY_SCREEN_NAME=marcellodesales
MY_LANGUAGE=en
CONSUMER_KEY=0ud4****kAfaE
CONSUMER_SECRET=UZ18Q****E73kPpO
ACCESS_TOKEN=2806784*****ZJV9CM
ACCESS_TOKEN_SECRET=5H8y****JNcQK

3. Call ./tweet.sh post "Message"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants