about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* Switched to self hosted hkutil HEAD masterStar Rauchenberger2023-10-031-1/+1
|
* Edit README to reflect no more streamsKelly Rauchenberger2018-08-301-1/+1
|
* Refactored tweet and user classesKelly Rauchenberger2018-08-304-210/+138
| | | | The only API-visible change is that these classes are no longer default constructible. Other than that, tweet now uses hatkirby::recptr to wrap its retweeted_status (tweet) and author (user) member objects, removing the need to implement the Rule of Five.
* Started using hkutilKelly Rauchenberger2018-08-307-28/+15
| | | | As of this commit, the only change is using hatkirby::implode instead of the implode that was in util.cpp.
* Whitespace changesKelly Rauchenberger2018-08-304-76/+76
|
* Removed more stream-related classesKelly Rauchenberger2018-08-307-149/+2
| | | | | | Among the deleted classes are list and direct_message. These classes were just stubs because the streaming API was able to return those objects. libtwitter++ does not yet actually support these objects, so the stub classes will be deleted for now. refs #3
* Removed stream functionalityKelly Rauchenberger2018-08-306-1774/+0
| | | | | | The Twitter streaming API has officially sunset, so the stream functionality can no longer be used. Because of this, there is no need to keep it in the codebase. refs #3
* Added ability to hydrate user objectsKelly Rauchenberger2018-08-062-0/+35
|
* User objects now contain whether the user is protectedKelly Rauchenberger2018-08-062-16/+25
|
* Tweets store their created timeKelly Rauchenberger2018-08-055-42/+99
| | | | C/C++ time handling is awful, pass it on
* Added ability to hydrate tweetsKelly Rauchenberger2018-08-052-0/+35
|
* Merge branch 'master' of https://github.com/hatkirby/libtwittercppKelly Rauchenberger2018-08-054-291/+1738
|\
| * Whitespace changesKelly Rauchenberger2018-02-232-125/+125
| |
| * Added ability to get blocklistKelly Rauchenberger2018-02-232-2/+36
| |
| * Switched back to upstream curlcpp because my pull request was mergedKelly Rauchenberger2017-12-202-1/+1
| |
| * Merge branch 'master' of github.com:hatkirby/libtwittercppKelly Rauchenberger2017-12-200-0/+0
| |\
| | * Updated curlcpp (important bug fixes)Kelly Rauchenberger2017-12-171-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This update fixes the underlying issue behind an infinite-stalling bug that has been around since differencebot was written. The four bots that download images from ImageNet (difference, advice, grunge, capital) had the same small logic error whereby the catch block, written to handle the situation when an image had failed to download, incorrectly took the exception by value rather than by const reference. While inefficient, this should not have caused any problems, but curlcpp, which the four bots all use through libtwitter++'s dependence on it, had a bug in the copy constructor of the curl_exception object which could cause a deadlock situation. This went unnoticed for a while, despite the four bots having serious downtime issues. When this was discovered, the bots were patched so that the relevant catch block took the exception by const reference. While this fixed things, it is also prudent to update curlcpp to the newest version in which this bug has been fixed. refs JosephP91/curlcpp#100
| * | Fixed unpredictable media upload failureKelly Rauchenberger2017-12-202-1/+1
| |/ | | | | | | | | | | | | | | While uploading media worked in development, as well as on production when compiled in debug mode, it failed with memory corruption issues on production in release mode. This turned out to be because curlcpp was taking lvalue references to temporary std::string objects converted from string constants, instead of just copying the string pointer.
| * Updated to nlohmann/json 2.0.9Kelly Rauchenberger2017-02-031-291/+1698
| |
| * Added a convenience overload to client::replyToTweetKelly Rauchenberger2016-12-012-0/+6
| |
* | Added timeline pollingKelly Rauchenberger2018-08-0516-822/+934
|/ | | | Because the streaming API will sunset on August 16th, it is essential to implement timeline polling so that the library can still be used to access tweets. This commit breaks the current API even for clients still using the streaming API because the OAuth connection data was pulled from twitter::client into twitter::auth. Other than that, almost everything works the same, and if a client wants to update their libtwitter++ within the next week and a half, they are free to.
* Made tweets, users, and notifications into copyable objectsKelly Rauchenberger2016-11-2912-151/+610
| | | | Notifications are now also mutable. Users and tweets no longer have helper methods for interacting with the client. Fixed a bug (possibly introduced by a change to the Twitter API) that caused non-reply tweets to be marked as unknown notifications.
* Removed nlohmann/json submoduleKelly Rauchenberger2016-11-274-4/+10795
| | | | The submodule contained around 73MB of benchmarks and tests that are not necessary for inclusion in this project. Thus, the submodule has been removed, and the 2.0.7 release of nlohmann/json has been added to the repository.
* Added another missing #include <memory>Kelly Rauchenberger2016-09-121-0/+1
|
* Updated curlcppKelly Rauchenberger2016-09-121-0/+0
|
* Added missing #include <memory>Kelly Rauchenberger2016-09-051-0/+1
|
* Merge branch 'master' of https://github.com/hatkirby/libtwittercppKelly Rauchenberger2016-08-203-43/+56
|\
| * Added method to Tweet to get URLKelly Rauchenberger2016-06-122-0/+6
| |
| * Merge branch 'master' of https://github.com/hatkirby/libtwittercppKelly Rauchenberger2016-06-028-199/+455
| |\
| * | Fixed user stream unable-to-reconnect issueKelly Rauchenberger2016-06-021-19/+20
| | |
* | | Updated API to use exceptions and make tweet/user objects more helpfulKelly Rauchenberger2016-08-2022-1340/+1530
| |/ |/|
* | Wrapped JSON parsing in exception handlingKelly Rauchenberger2016-06-014-198/+270
| |
* | Added ability to get configurationKelly Rauchenberger2016-05-316-1/+185
|/
* Added option to receive all replies in user streamKelly Rauchenberger2016-05-252-10/+35
|
* Fixed stream behavior when connection ends normallyKelly Rauchenberger2016-05-241-1/+6
|
* Fixed retweet detectionKelly Rauchenberger2016-05-222-3/+72
| | | | Because a retweet is a tweet referenced from another tweet, the current implementation dynamically allocates memory for the retweeted status and has to manually copy the pointed to data around. It's not a very pretty implementation and may get tweaked at some point soon. I don't like having to implement the big five.
* Added utility function to generate tweet reply prefillKelly Rauchenberger2016-05-226-0/+45
|
* Projects using libtwitter++ no longer have to include its dependenciesKelly Rauchenberger2016-05-213-9/+9
|
* Added "retweeted" field to tweetKelly Rauchenberger2016-05-202-0/+17
|
* Updated README to reflect the user stream commitsKelly Rauchenberger2016-05-201-1/+4
|
* Changed curlcpp back to origin because my pull request was approvedKelly Rauchenberger2016-05-201-1/+1
|
* Started implementing user streamsKelly Rauchenberger2016-05-2016-49/+1664
| | | | You can now start a user stream and end it yourself. If it disconnects abnormally, it will reconnect with a backoff as described by Twitter. Some data structures have some fields parsed now; tweets have IDs, text, and authors. Users have IDs, screen names, and names. Notifications from the stream are parsed completely. The ability to follow and unfollow users has also been added, as well as the ability to get a list of friends and followers, and to reply to a tweet.
* Create README.mdKelly Rauchenberger2016-04-151-0/+7
|
* Fixed issue with multipart POSTsKelly Rauchenberger2016-04-151-2/+4
|
* Added #include <unistd.h>Kelly Rauchenberger2016-04-151-0/+1
|
* Added ability to upload media and tweet itKelly Rauchenberger2016-04-1312-42/+404
| | | | Images (static and animated) and videos have been tested. Currently all media uploads occur in one large chunk; support to break down chunks will be added later.
* Added basic ability to tweetKelly Rauchenberger2016-04-1212-0/+319