Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetNetIf HTTPClient mbed
Fork of TwitterExample by
Revision 2:2a9775a81062, committed 2010-06-21
- Comitter:
- donatien
- Date:
- Mon Jun 21 09:08:05 2010 +0000
- Parent:
- 1:7050426c5b43
- Child:
- 3:2f8261781bf8
- Commit message:
Changed in this revision
| TwitterExample.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/TwitterExample.cpp Fri Jun 18 10:35:43 2010 +0000
+++ b/TwitterExample.cpp Mon Jun 21 09:08:05 2010 +0000
@@ -1,3 +1,11 @@
+/*
+ Update: 21-06-2010
+ The basic authentication service for twitter is going down at the end of the week.
+ To continue using that program, the code has been updated to use http://supertweet.net which acts as an API proxy.
+ Simply visit the website to setup your twitter account for this API.
+ See: http://www.supertweet.net/about/documentation
+*/
+
#include "mbed.h"
#include "EthernetNetIf.h"
#include "HTTPClient.h"
@@ -25,7 +33,7 @@
twitter.basicAuth("myuser", "mypass"); //We use basic authentication, replace with you account's parameters
//No need to retieve data sent back by the server
- HTTPResult r = twitter.post("http://twitter.com/statuses/update.xml", msg, NULL);
+ HTTPResult r = twitter.post("http://api.supertweet.net/1/statuses/update.xml", msg, NULL);
if( r == HTTP_OK )
{
printf("Tweet sent with success!\n");
