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.
Dependents: SuperTweet_TestProgram StarBoardOrangeExpansion1 GSL_04-Network_Twitter
SuperTweet.cpp
- Committer:
- shintamainjp
- Date:
- 2010-10-29
- Revision:
- 2:d463d3fc4f81
- Parent:
- 1:2d211e591fc8
File content as of revision 2:d463d3fc4f81:
/** * 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/"; /** * Create. * * @param account Account name. * @param password Password. */ 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); } /** * Dispose. */ SuperTweet::~SuperTweet() { } /** * Set timeout. * * @param ms Timeout. [ms] */ void SuperTweet::setTimeout(int ms) { client.setTimeout(ms); }