aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/twitter/twitter_lib.c
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2016-08-01 13:04:29 +0200
committerMarius Halden <marius.h@lden.org>2016-08-01 13:04:29 +0200
commit14dc4bb2fec1422721dc038bd9a4412c8bb8e67f (patch)
treeb1d7d17ce86f730b9e252e03533cf4017afa0dbb /protocols/twitter/twitter_lib.c
parent94f613581320f660204bf967aafd74e6450b1389 (diff)
Add commands to enable/disable rts for user
Diffstat (limited to 'protocols/twitter/twitter_lib.c')
-rw-r--r--protocols/twitter/twitter_lib.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/protocols/twitter/twitter_lib.c b/protocols/twitter/twitter_lib.c
index 4ef22345..011c31ab 100644
--- a/protocols/twitter/twitter_lib.c
+++ b/protocols/twitter/twitter_lib.c
@@ -1742,6 +1742,19 @@ void twitter_mute_create_destroy(struct im_connection *ic, char *who, int create
twitter_http_post, ic, 1, args, 2);
}
+/**
+ * Enable or disable retweets for user
+ */
+void twitter_retweet_enable_disable(struct im_connection *ic, char *who, int enable)
+{
+ char *args[4];
+ args[0] = "screen_name";
+ args[1] = who;
+ args[2] = "retweets";
+ args[3] = enable ? "true" : "false";
+ twitter_http(ic, TWITTER_FRIENDSHIPS_UPDATE_URL, twitter_http_post, ic, 1, args, 4);
+}
+
void twitter_status_destroy(struct im_connection *ic, guint64 id)
{
char *url;