todoist: implement a generic post method
Since methods such as gtd_provider_todoist_create_task etc. will make a post request to todoist endpoint, it is necessary to have a generic post function otherwise a lot of code will be repeated. This patch implements: 1) Implements a generic post method that takes Json Object as params. 2) Make use of the generic post method in the function gtd_provider_todoist_sync_call which is use to sync tasks and lists from todoist. https://bugzilla.gnome.org/show_bug.cgi?id=772278
parent
9f11c1ca