Categories: Development

How to get your Twitter api keys

Here is how to get your Twitter api Consumer Key (API Key), Consumer Secret (API Secret) , Access Token and Access Token Secret. With these 4 values you can tweet out information and data with PHP and api’s.

Be signed into Twitter and head to apps.twitter.com and click the button “Create new app”

Fill out the form; You can put something like “test project” in the name input. A small description of what you’re doing with the api and the website or URL its being hosted at (this can be a placeholder). Skip the callback URL and tick yes for the agreeance to the Twitter developer terms, Now click “Create your Twitter application”.

Now you will come across the app management page like this:

Click “manage keys and access tokens”

A new page will load, Take note and get your

Consumer Key (API Key)
Consumer Secret (API Secret)

Now down the page click “Create my access token”
The page will reload and under Your access token you will now be able to see your
Access Token
Access Token Secret
You now have all you need to integrate Twitter with PHP.
Share

Recent Posts

Kennington reservoir drained drone images

A drained and empty Kennington reservoir images from a drone in early July 2024. The…

2 years ago

Merrimu Reservoir drone images

Merrimu Reservoir from drone. Click images to view larger.

2 years ago

Early September spring shots

Some early September spring shots from a bushwalk, It is still too early for wildflowers.

3 years ago

Cloning an NVMe to SK Hynix Platinum P41 NVMe

I recently needed to clone over a smaller NVMe to a 2TB SK Hynix Platinum…

3 years ago

Using Laravel’s deleteDirectory to delete folders and their contents

If you ever needed a simple solution in Laravel to delete an entire directory and…

3 years ago

How to allow only 1 user to register in a Laravel application

How to enforce only one user to register or be registered in a Laravel web…

3 years ago