Created
March 4, 2011 08:56
-
-
Save yusuke/854361 to your computer and use it in GitHub Desktop.
test.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
</head> | |
<body> | |
<?php | |
// initialize tmhOAuth | |
require "./tmhOAuth.php"; | |
$twitter = new tmhOAuth(array()); | |
$twitter->request("GET", $twitter->url("1/help/test")); | |
print $twitter->response["response"]; | |
?></body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the array requires the OAuth details to be configured. If you want to call the method unauthenticated you need to make the request like this:
$twitter->request("GET", $twitter->url("1/help/test"), array(), false);