Skip to content

Instantly share code, notes, and snippets.

@BatuhanK
Last active August 29, 2015 14:06
Show Gist options
  • Save BatuhanK/c8a46014467e6c890349 to your computer and use it in GitHub Desktop.
Save BatuhanK/c8a46014467e6c890349 to your computer and use it in GitHub Desktop.
Xauth Token alma
<?php
require('UltimateOAuth.php');
$consumer_key = "c8a46014467e6c890349"; // Resmi Twitter uygulamasına aittir
$consumer_secret = "GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU"; // Resmi Twitter uygulamasına aittir
$uo = new UltimateOAuth( $consumer_key, $consumer_secret);
$username = ""; // Twitter username
$password = ""; // Twitter password
$response = $uo->directGetToken ( $username, $password );
var_dump($response);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment