Skip to content

Instantly share code, notes, and snippets.

@dtinth
Created October 7, 2010 13:49
Show Gist options
  • Save dtinth/615127 to your computer and use it in GitHub Desktop.
Save dtinth/615127 to your computer and use it in GitHub Desktop.
<?php
define ('CONSUMER_KEY', '__________');
define ('CONSUMER_SECRET', '__________');
define ('ACCESS_TOKEN', '__________');
define ('ACCESS_TOKEN_SECRET', '__________');
<?php
require 'config.php';
require 'oauthdamnit.php';
$api = new OAuthDamnit(CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN, ACCESS_TOKEN_SECRET);
$raw = $api->get('http://api.twitter.com/1/account/verify_credentials.json');
$response = @json_decode($raw, true);
print_r ($response);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment