Skip to content

Instantly share code, notes, and snippets.

View debojyotighosh's full-sized avatar
🏠
Playing from home

Debojyoti Ghosh debojyotighosh

🏠
Playing from home
View GitHub Profile
@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);