Skip to content

Instantly share code, notes, and snippets.

@jljohnson
Forked from ccj242/tweet.php
Created June 21, 2018 16:58
Show Gist options
  • Select an option

  • Save jljohnson/a377b9afed77b697368a70f03be3aae7 to your computer and use it in GitHub Desktop.

Select an option

Save jljohnson/a377b9afed77b697368a70f03be3aae7 to your computer and use it in GitHub Desktop.

Revisions

  1. @ccj242 ccj242 revised this gist Jul 3, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion tweet.php
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,4 @@
    $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));
    ?>
    ?>
  2. @ccj242 ccj242 created this gist Jul 3, 2017.
    7 changes: 7 additions & 0 deletions tweet.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    <?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));
    ?>