POST and DELETE working for this Context.io in Python
New here? Learn about Bountify and follow @bountify to get notified of new bounties! x

This library works great for GET, however, POST and DELETE are being ignored by context.io

https://github.com/zacwitte/contextio-oauth2/blob/master/contextio.py

Here are two examples that appear to return a success, but are not reflected in the target mailbox (google apps) result, msg = contextioconn.request('DELETE', 'accounts/%s/messages/%s' % (accountid, mid), context={}) result, msg = contextioconn.request('POST', 'accounts/%s/messages/%s/flags' % (accountid, mid), context={"deleted":1, "viewed":1})
Tony over 6 years ago
Have you tried their official python API? https://github.com/ContextIO/Python-ContextIO
weslly over 6 years ago
awarded to alexanderk23
Tags
python
oauth

Crowdsource coding tasks.

1 Solution

Winning solution

It seems that POST requests work as expected. DELETE is fixed here: https://github.com/alexanderk23/contextio-oauth2/blob/master/contextio.py