about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2016-12-01 08:49:01 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2016-12-01 08:49:01 -0500
commitd783c17151a98466e304b1e5f33bfca0be885fd8 (patch)
tree0ae46f492a7c4bee9f9ec3d95f997b8421f0eca2 /src
parent7c44fd17bb6be54a2ea4b60761e91053ca988977 (diff)
downloadlibtwittercpp-d783c17151a98466e304b1e5f33bfca0be885fd8.tar.gz
libtwittercpp-d783c17151a98466e304b1e5f33bfca0be885fd8.tar.bz2
libtwittercpp-d783c17151a98466e304b1e5f33bfca0be885fd8.zip
Added a convenience overload to client::replyToTweet
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp5
-rw-r--r--src/client.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp index e16e30b..ccfd9a3 100644 --- a/src/client.cpp +++ b/src/client.cpp
@@ -376,6 +376,11 @@ namespace twitter {
376 .perform()); 376 .perform());
377 } 377 }
378 378
379 tweet client::replyToTweet(std::string msg, const tweet& in_response_to, std::list<long> media_ids) const
380 {
381 return replyToTweet(msg, in_response_to.getID(), media_ids);
382 }
383
379 long client::uploadMedia(std::string media_type, const char* data, long data_length) const try 384 long client::uploadMedia(std::string media_type, const char* data, long data_length) const try
380 { 385 {
381 curl::curl_form form; 386 curl::curl_form form;
diff --git a/src/client.h b/src/client.h index 2230dbb..c920f82 100644 --- a/src/client.h +++ b/src/client.h
@@ -29,6 +29,7 @@ namespace twitter {
29 long uploadMedia(std::string media_type, const char* data, long data_length) const; 29 long uploadMedia(std::string media_type, const char* data, long data_length) const;
30 30
31 tweet replyToTweet(std::string msg, tweet_id in_response_to, std::list<long> media_ids = {}) const; 31 tweet replyToTweet(std::string msg, tweet_id in_response_to, std::list<long> media_ids = {}) const;
32 tweet replyToTweet(std::string msg, const tweet& in_response_to, std::list<long> media_ids = {}) const;
32 33
33 std::set<user_id> getFriends(user_id id) const; 34 std::set<user_id> getFriends(user_id id) const;
34 std::set<user_id> getFriends(const user& u) const; 35 std::set<user_id> getFriends(const user& u) const;