Simple and easy to use python package for utilizing vayu billing system
Project description
openapi-client
The Vayu Event Ingestion API is a RESTful API that allows you to submit events for processing and storage. The API is secured using the Bearer Authentication scheme with JWT tokens. To obtain a JWT token, please contact Vayu at team@withvayu.com
The openapi_client package is automatically generated by the OpenAPI Generator project:
- API version: 2.3.1
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.7+
Installation & Usage
This python library package is generated without supporting files like setup.py or requirements files
To be able to use it, you will need these dependencies in your own package that uses this library:
- urllib3 >= 1.25.3
- python-dateutil
- pydantic
Getting Started
In your own code, to use this library to connect and interact with openapi-client, you can run the following:
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://events.withvayu.com
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
host = "https://events.withvayu.com"
)
# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = openapi_client.AuthApi(api_client)
login_request = openapi_client.LoginRequest() # LoginRequest | The body contains the refresh token required to obtain a new access token.
try:
# Login by obtaining a new access token
api_response = api_instance.login(login_request)
print("The response of AuthApi->login:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling AuthApi->login: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to https://events.withvayu.com
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AuthApi | login | POST /login | Login by obtaining a new access token |
| EventsApi | send_events | POST /events | Submit a batch of events for ingestion |
Documentation For Models
Documentation For Authorization
Endpoints do not require authorization.
Author
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vayu_client-0.0.5.tar.gz.
File metadata
- Download URL: vayu_client-0.0.5.tar.gz
- Upload date:
- Size: 19.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d57de834edadfb1cacdd9a815d998b07de7d094dc9186389af17c29614fbc2f
|
|
| MD5 |
5f250b22fd1cfba62d6978db34b59019
|
|
| BLAKE2b-256 |
bcd092d3ab74b6c119c0026e1b08cecbf674dc2f8d96841af2fffc01e9081ab3
|
File details
Details for the file vayu_client-0.0.5-py3-none-any.whl.
File metadata
- Download URL: vayu_client-0.0.5-py3-none-any.whl
- Upload date:
- Size: 29.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d955b22e57e8c6ff06821c07df5a6a6aaa8fbc9a6f5a619900fe55c14a20c32d
|
|
| MD5 |
94876718bb5fd577f1b9578be4b4fe63
|
|
| BLAKE2b-256 |
24a90036da3ed7d8223433c02be199d2db741e01d63e7bde5f7a646568d3e94e
|