Client for Reporting API.
Project description
Reporting API Client
This is a Python Client for Jampp’s Reporting API. For more information, check the docs.
Features
Execute Pivots in an user friendly manner.
Execute raw GraphQL queries against the Reporting API.
Basic Usage
import os
from reporting_api_client import ReportingAPIClient
client = ReportingAPIClient(os.environ["CLIENT_ID"], os.environ["CLIENT_SECRET"])
query = """{
pivot(from: "2022-07-01", to: "2022-07-02", granularity: DAILY) {
results {
clicks
}
}
}"""
result = client.query(query)
print(result)
Executing the above code should output a result similar to the following:
$ python example.py {'pivot': {'results': [{'clicks': 123456}]}}
Change Log
All notable changes to this project will be documented here.
Sort subsections like so: Added, Bugfixes, Improvements, Technical tasks. Group anything an end user shouldn’t care deeply about into technical tasks, even if they’re technically bugs. Only include as “bugfixes” bugs with user-visible outcomes.
When major components get significant changes worthy of mention, they can be described in a Major section.
v0.3.0 - 2022-09-12
Added
Add workflows for CI and publishing to PyPI.
Host documentation publically.
Changed
Remove Jampp’s refferences.
v0.2.0 - 2022-08-29
Added
Remove need of introspection on client.
v0.1.0 - 2022-07-19
Added
Add base ReportingAPIClient implementation using OAuth for authentication
Rename to reporting_api_client.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file jampp_reporting_api_client-0.3.0.tar.gz
.
File metadata
- Download URL: jampp_reporting_api_client-0.3.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 561262477d59ee2b35657bf95eb53b816889fe9fc132d85c451bd44c3e17f703 |
|
MD5 | 629e36595ee8a7de74e37da5a4af583c |
|
BLAKE2b-256 | 9c600d88d6b97556bd94fc88108c1560338b613e39f6826f2bc2974aaf15a67b |
File details
Details for the file jampp_reporting_api_client-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: jampp_reporting_api_client-0.3.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4eb0065539ce16a157de6ea3e68a03046ada8dbf2a5f6dede50ea80cc0c4a515 |
|
MD5 | bdcad34ed69417c27f0d30b46087d52b |
|
BLAKE2b-256 | 154b4eb4b31bd326ea5423169f3978d793dd63200945e4a34df1fbceec8ccf8c |