Using flatpak-kde-runtime with flat.io

Python integration

Install
pip install flatpak-kde-runtime
Quick start
import flatpak-kde-runtime

# Use an OAuth2 access token
client = flatpak_kde_runtime.Client(access_token="YOUR_ACCESS_TOKEN")
Get current user profile
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://api.flat.io/v2/me
List the classes available for the current user
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://api.flat.io/v2/classes
List the collections
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://api.flat.io/v2/collections
SDK on GitHub 📄 API Docs
SDK
flatpak-kde-runtime
Python
API
flat.io
flat.io
At a glance
Language Python
Endpoints81
Base URLhttps://api.flat.io/v2