final, working project

Dependencies:   C12832 EthernetInterface HTTPClient Speaker USBDevice mbed-rtos mbed

Committer:
RiiQQe
Date:
Fri Feb 12 13:11:08 2016 +0000
Revision:
2:59edfc0fd52f
added php;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
RiiQQe 2:59edfc0fd52f 1 <?php
RiiQQe 2:59edfc0fd52f 2 require('codebird.php');
RiiQQe 2:59edfc0fd52f 3 $date = new DateTime();
RiiQQe 2:59edfc0fd52f 4
RiiQQe 2:59edfc0fd52f 5 $msg = "Something went wrong";
RiiQQe 2:59edfc0fd52f 6
RiiQQe 2:59edfc0fd52f 7 //$msg = $_GET['msg'] . " // " . $date->getTimestamp();
RiiQQe 2:59edfc0fd52f 8 $msg = "Score: " . $_GET['msg'] . " // " . date('Y-m-d', strtotime('+8 hours')) . " - " . date('h:i:sa', strtotime('+8 hours')) . " #snakeGame #teamSweden" ;
RiiQQe 2:59edfc0fd52f 9 // Set keys
RiiQQe 2:59edfc0fd52f 10 $consumerKey = 'XHO3e2fiS44d5i7xc6mvtvDdZ';
RiiQQe 2:59edfc0fd52f 11 $consumerSecret = '9U4WOjRnpM5Pj0Qv4f6406jTRfN65YY5GeE5PRXHuhPfSiWhEN';
RiiQQe 2:59edfc0fd52f 12 $accessToken = '4761221959-n4ojXEYR4DZSA4eeqt1WetVHHrZWTUNLJJ9ql3o';
RiiQQe 2:59edfc0fd52f 13 $accessTokenSecret = 'SXM05FPIW9SUgTYYgpk4buPcypwXIsLDIY3TRns01WRJP';
RiiQQe 2:59edfc0fd52f 14
RiiQQe 2:59edfc0fd52f 15 \Codebird\Codebird::setConsumerKey($consumerKey, $consumerSecret);
RiiQQe 2:59edfc0fd52f 16 $cb = \Codebird\Codebird::getInstance();
RiiQQe 2:59edfc0fd52f 17 $cb->setToken($accessToken, $accessTokenSecret);
RiiQQe 2:59edfc0fd52f 18
RiiQQe 2:59edfc0fd52f 19 $params = array(
RiiQQe 2:59edfc0fd52f 20 'status' => $msg
RiiQQe 2:59edfc0fd52f 21 );
RiiQQe 2:59edfc0fd52f 22
RiiQQe 2:59edfc0fd52f 23 $reply = $cb->statuses_update($params);
RiiQQe 2:59edfc0fd52f 24 ?>
RiiQQe 2:59edfc0fd52f 25