Skip to content

Instantly share code, notes, and snippets.

View aprabaldi's full-sized avatar
:octocat:
coding

Andrés Pra Baldi aprabaldi

:octocat:
coding
View GitHub Profile
@enijar
enijar / plugins.md
Last active August 25, 2022 02:24
Useful
@lgladdy
lgladdy / twitter-application-only-auth.php
Created March 12, 2013 09:46
A working example of Twitter's new application-only auth, written in PHP.
<?php
//This is all you need to configure.
$app_key = '';
$app_token = '';
//These are our constants.
$api_base = 'https://api.twitter.com/';
$bearer_token_creds = base64_encode($app_key.':'.$app_token);