From a9d33aa08df10102539e33c0c6d4334e9e99a470 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Thu, 30 Aug 2018 20:38:37 -0400 Subject: Started using hkutil As of this commit, the only change is using hatkirby::implode instead of the implode that was in util.cpp. --- src/client.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index 3a01c90..07f7580 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include "request.h" namespace twitter { @@ -26,7 +27,7 @@ namespace twitter { if (!media_ids.empty()) { datastrstream << "&media_ids="; - datastrstream << twitter::implode(std::begin(media_ids), std::end(media_ids), ","); + datastrstream << hatkirby::implode(std::begin(media_ids), std::end(media_ids), ","); } return tweet( @@ -46,7 +47,7 @@ namespace twitter { if (!media_ids.empty()) { datastrstream << "&media_ids="; - datastrstream << twitter::implode(std::begin(media_ids), std::end(media_ids), ","); + datastrstream << hatkirby::implode(std::begin(media_ids), std::end(media_ids), ","); } return tweet( @@ -366,7 +367,8 @@ namespace twitter { } std::string datastr = "id=" + - OAuth::PercentEncode(implode(std::begin(cur), std::end(cur), ",")); + OAuth::PercentEncode( + hatkirby::implode(std::begin(cur), std::end(cur), ",")); std::string response = post(auth_, @@ -399,7 +401,8 @@ namespace twitter { } std::string datastr = "user_id=" + - OAuth::PercentEncode(implode(std::begin(cur), std::end(cur), ",")); + OAuth::PercentEncode( + hatkirby::implode(std::begin(cur), std::end(cur), ",")); std::string response = post(auth_, -- cgit 1.4.1