SuperTweet interface driver classes.

Dependents:   SuperTweet_TestProgram StarBoardOrangeExpansion1 GSL_04-Network_Twitter

Revision:
0:d48d92e6c145
Child:
1:2d211e591fc8
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SuperTweet.cpp	Tue Oct 12 22:20:38 2010 +0000
@@ -0,0 +1,23 @@
+/**
+ * SuperTweet API interface driver. (Version 0.0.1)
+ *
+ * Copyright (C) 2010 Shinichiro Nakamura (CuBeatSystems)
+ * http://shinta.main.jp/
+ */
+
+#include "SuperTweet.h"
+
+const std::string SuperTweet::URLBASE_V1 = "http://api.supertweet.net/1/";
+
+SuperTweet::SuperTweet(const std::string account, const std::string password)
+        : account(account), password(password), client() {
+    client.basicAuth(account.c_str(), password.c_str());
+    client.setTimeout(10000);
+}
+
+SuperTweet::~SuperTweet() {
+}
+
+void SuperTweet::setTimeout(int ms) {
+    client.setTimeout(ms);
+}