-
-
Save jljohnson/a377b9afed77b697368a70f03be3aae7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| <?php | |
| use Abraham\TwitterOAuth\TwitterOAuth; | |
| $tweet="this is a test tweet"; | |
| $connection = new TwitterOAuth(/*CONSUMER_KEY*/, /*CONSUMER_SECRET*/, /*ACCESS_TOKEN*/, /*ACCESS_TOKEN_SECRET*/); | |
| $content = $connection->get('account/verify_credentials'); | |
| $connection->post('statuses/update', array('status' => $tweet)); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment