Skip to content

HTTP verb methods

For interacting with parts of the ODK Central API (docs) that have not been implemented in pyodk, use HTTP verb methods exposed on the Client:

client.get("projects/8")"projects/7/app-users", json={"displayName": "Lab Tech"})

These methods provide convenient access to Client.session, which is a requests.Session object subclass. The Session has customised to prefix request URLs with the base_url from the pyodk config. For example with a base_url, a call to client.session.get("projects/8") gets the details of project_id=8, using the full url

Learn more in this example.