SuperTweet interface driver classes.
Dependents: SuperTweet_TestProgram StarBoardOrangeExpansion1 GSL_04-Network_Twitter
SuperTweet.cpp
00001 /** 00002 * SuperTweet API interface driver. (Version 0.0.1) 00003 * 00004 * Copyright (C) 2010 Shinichiro Nakamura (CuBeatSystems) 00005 * http://shinta.main.jp/ 00006 */ 00007 00008 #include "SuperTweet.h" 00009 00010 const std::string SuperTweet::URLBASE_V1 = "http://api.supertweet.net/1/"; 00011 00012 /** 00013 * Create. 00014 * 00015 * @param account Account name. 00016 * @param password Password. 00017 */ 00018 SuperTweet::SuperTweet(const std::string account, const std::string password) 00019 : account(account), password(password), client() { 00020 client.basicAuth(account.c_str(), password.c_str()); 00021 client.setTimeout(10000); 00022 } 00023 00024 /** 00025 * Dispose. 00026 */ 00027 SuperTweet::~SuperTweet() { 00028 } 00029 00030 /** 00031 * Set timeout. 00032 * 00033 * @param ms Timeout. [ms] 00034 */ 00035 void SuperTweet::setTimeout(int ms) { 00036 client.setTimeout(ms); 00037 }
Generated on Tue Jul 12 2022 20:54:58 by 1.7.2