Example of a program that uses the TwitPic library.

Dependencies:   EthernetNetIf TwitPic mbed DNSResolver

Files at this revision

API Documentation at this revision

Comitter:
treebykooba
Date:
Mon Feb 28 02:04:26 2011 +0000
Parent:
0:4a6b01bf147d
Commit message:

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 4a6b01bf147d -r 44a07cd54a87 main.cpp
--- a/main.cpp	Sat Feb 26 20:10:39 2011 +0000
+++ b/main.cpp	Mon Feb 28 02:04:26 2011 +0000
@@ -2,14 +2,17 @@
 
 #define IMAGE_PATH "/local/image.jpg"
 
-const char twitpic_api_key[]    = "31c45945be2638bydjua1c4d4278d9602"; 
-
-const char consumer_key[]        = "Hl1fObuUdobieyHZtsw52qg";  
-const char consumer_secret[]     = "7CmMt8nTTYKM2F6nPMSiC2DqFPYmKDZOUc3lvWIJsFk"; 
+//get an api key from twit.pic, put it below
+const char twitpic_api_key[]    = "PUT_YOUR_TWITPIC_API_KEY_HERE"; 
 
 
-const char access_token[]        = "8839572789-uUjbndiYi2EOutUvsMYkJNcK9JtRbWhU"; 
-const char access_token_secret[] = "kLXd6xmIkdTS098Jb97EOBHCZkIyOZCxlYQTdug"; 
+//twitter has a lot more keys you need. get all those and enter them below.
+const char consumer_key[]        = "PUT_YOUR CONSUMER_KEY_HERE";  
+const char consumer_secret[]     = "PUT_YOUR_CONSUMER_SECRET_HERE"; 
+
+
+const char access_token[]        = "PUT_YOUR_ACCESS_TOKEN_HERE"; 
+const char access_token_secret[] = "ACCESS_TOKEN_SECRET_HERE"; 
 
 int main() {
     TwitPic twitpic(twitpic_api_key,consumer_key,consumer_secret,access_token,access_token_secret);