Last active
June 21, 2018 16:58
-
-
Save ccj242/d895989cf85ca337ce8a6a0691a64831 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