SuperTweet interface driver classes.

Dependents:   SuperTweet_TestProgram StarBoardOrangeExpansion1 GSL_04-Network_Twitter

SuperTweet.cpp

Committer:
shintamainjp
Date:
2010-10-12
Revision:
0:d48d92e6c145
Child:
1:2d211e591fc8

File content as of revision 0:d48d92e6c145:

/**
 * 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);
}