skip to Main Content

I cannot understand what is the difference between API key, API key secret, Bearer Token, Access Token Access Secret. There is also Client ID and Client Secret which is something very confusing.

I wish to create a Twitter bot, but I find this very confusing. I have tried googling my question, and searching it up on youtube, but I have not found an answer that clears my question.

2

Answers


  1. If you want to simply read tweets, then Bearer Token is enough.

    If you want to create tweets then you will need to use:
    API Key
    API Key Secret
    Access Token
    Access Token Secret

    The client Id and client secret are not require.

    There’s a full articl here:
    https://pythonhowtoprogram.com/how-to-build-a-twitter-bot-with-python-and-twitter-api-v2/

    Login or Signup to reply.
  2. Admittedly the terms are a bit confusing;but these terms have the same meaning:

    Consumer key = Customer key = Api key

    Consumer secret = Customer secret = Api secret key

    In general, tokens above and Bearer token represent the user that you are making the request on behalf of.

    Access token and Access secret – they are Username and Password for your App.

    And their usage:

    Consumer key, Consumer secret, Access token, Access Secret (or only Access token and Access Secret depending on language and libraries you are using) – these are needed if your software make request to endpoints with POST method, that is if it tweets, replies to a tweet and etc.

    If the software make request to endpoints with GET method then authenticating with Bearer Token is enough. Another use of Bearer Token is with Twitter API v2, which only accepts Bearer Token authentication if try to make requests to endpoints of this api.

    For more detailed information Getting Access to Twitter API

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search