X-Git-Url: https://git.wpitchoune.net/gitweb/?p=prss.git;a=blobdiff_plain;f=src%2Fttrss.c;h=18b6369abb76d52b7298677c0228241fb0e2fba9;hp=7f9e8dff15eb5f573d16cfb13bed2ce9494daf7d;hb=4c8273864b951d26b002c8f2ec6e92a9a13799b6;hpb=78ac024c7f47e3e7ca301ab983f688bc3d6e686e;ds=sidebyside diff --git a/src/ttrss.c b/src/ttrss.c index 7f9e8df..18b6369 100644 --- a/src/ttrss.c +++ b/src/ttrss.c @@ -65,7 +65,7 @@ void ttrss_login(const char *url, const char *user, const char *password) "password", json_object_new_string(password)); - rp = post_json_object(session_url, rq); + rp = http_json_get(session_url, rq); json_object_put(rq); content = json_object_object_get(rp, "content"); @@ -105,7 +105,7 @@ const char *ttrss_get_headline_content(struct headline *h) json_object_object_add(rq, "article_id", json_object_new_int(h->id)); - rp = post_json_object(session_url, rq); + rp = http_json_get(session_url, rq); json_object_put(rq); @@ -140,7 +140,7 @@ static struct headline **get_headlines(int feed_id) rq = create_op("getHeadlines"); json_object_object_add(rq, "feed_id", json_object_new_int(feed_id)); - rp = post_json_object(session_url, rq); + rp = http_json_get(session_url, rq); json_object_put(rq); @@ -227,7 +227,7 @@ struct feed **ttrss_get_feeds() rq = create_op("getFeeds"); - rp = post_json_object(session_url, rq); + rp = http_json_get(session_url, rq); json_object_put(rq); content = json_object_object_get(rp, "content"); @@ -289,7 +289,7 @@ void ttrss_set_article_unread(int id, int unread) json_object_object_add(rq, "field", json_object_new_int(2)); json_object_object_add(rq, "mode", json_object_new_int(unread)); - rp = post_json_object(session_url, rq); + rp = http_json_get(session_url, rq); json_object_put(rq); json_object_put(rp);