API Client

wunderpy.api.client.batch_format(request)

Make a dict compatible with wunderlist’s batch endpoint.

class wunderpy.api.client.APIClient
login(email, password)

Login to wunderlist

send_request(request, timeout=30)

Send a single request to Wunderlist in real time.

Parameters:
  • request – A prepared Request object for the request.
  • timeout (int) – Timeout duration in seconds.
Returns:

dict:

send_requests(api_requests, timeout=30)

Sends requests as a batch.

Returns a generator which will yield the server response for each request in the order they were supplied. You must run next() on the result at least once.

Parameters:api_requests (list – Made up of requests.Request objects) – a list of valid, prepared Request objects.
Yields :dict
set_token(token)

Set token manually to avoid having to login repeatedly

Read the Docs v: latest
Versions
latest
v0.2.0
Downloads
PDF
HTML
Epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.