podio-python
podio-python is an API wrapper for Podio, written in Python.
This library uses Oauth2 for authentication.
Installing
pip install podio-python
Usage
# if you have an access token:
from podio.client import Client
client = Client(access_token=access_token)
# if you are using Oauth2 to get an access_token:
from podio.client import Client
client = Client(client_id=client_id, client_secret=client_secret, redirect_uri=redirect_uri)
To obtain and set an access token:
- Get authorization URL
url = client.authorization_url(state=None)
- Get access token using code
response = client.get_access_token(code)
- Set access token
client.set_token(access_token)
Check more information about Podio Oauth: https://developers.podio.com/authentication/server_side
Refresh token
If your access token expired you can use your refresh token to obtain a new one:
token = client.refresh_token(refresh_token)
# And then set your token again:
client.set_token(token["access_token"])
Get user status
user = client.get_user_status()
Organizations
List organizations
orgs = client.list_organizations()
List organization spaces
spaces = client.get_organization_spaces(org_id)
Get space
spaces = client.get_space(space_id)
List space members
members = client.get_space_members(space_id)
Applications
List applications
apps = client.list_applications()
Get application
app = client.get_application(app_id)
Get item
item = client.get_item(item_id)
Create item
body = {"fields": {"title": "Juan Assignment", "status": 1}}
item = client.create_item(app_id, body)
Get task
task = client.get_task(task_id)
Create task
body = {"text": "Text of the task", "description": "desc"}
task = client.create_task(body)
Get task labels
labels = client.get_task_labels()
Webhooks
List webhooks
hooks = client.list_webhooks(ref_type, ref_id)
Create webhook
hook = client.create_webhook(ref_type, ref_id, url, hook_type)
Validate hook verification
client.validate_hook_verification(webhook_id, code)
Delete webhook
client.delete_webhook(webhook_id)
Metadata
Release files for podio-python 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| podio_python-0.1.9.tar.gz | 3.7 kB | Without provenance | Details for podio_python-0.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| podio_python-0.1.9-py3-none-any.whl | Python 3 | none | any | Details for podio_python-0.1.9-py3-none-any.whl |
Total release size: 8.3 kB
Release files / podio_python-0.1.9.tar.gz
| Download URL | podio_python-0.1.9.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b2827f92ec603a9c7898d88bc86acca69e847001d4d9b8e8cb7b96c38efc4b5
|
|
BLAKE2b-256 checksum How to use checksums |
2b5ef91c71f9a3f18857d9c39a90831fd7d5014aaf575a7593369b4732a0100e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / podio_python-0.1.9-py3-none-any.whl
| Download URL | podio_python-0.1.9-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
45dc30aa16a85ffbac81508fe3a516b6b6d9b5ef1b7fdecee87f4b470782f4fc
|
|
BLAKE2b-256 checksum How to use checksums |
c22c01ad78d61353157a89c92c9c3765d1e1a1ddd06b6561eb3966c891187f1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for podio-python 0.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.