Metadata-Version: 2.1
Name: vayu-client
Version: 0.0.5
Summary: Simple and easy to use python package for utilizing vayu billing system
Home-page: https://withvayu.com
Author: Vayu, Inc.
Author-email: team@withvayu.com
License: UNKNOWN
Keywords: vayu,billing,events,python,sdk
Platform: UNKNOWN
Requires-Python: ==3.7.*
Description-Content-Type: text/markdown

# 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](https://openapi-generator.tech) 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:

```python

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**](openapi_client/docs/AuthApi.md#login) | **POST** /login | Login by obtaining a new access token
*EventsApi* | [**send_events**](openapi_client/docs/EventsApi.md#send_events) | **POST** /events | Submit a batch of events for ingestion


## Documentation For Models

 - [EventInput](openapi_client/docs/EventInput.md)
 - [LoginRequest](openapi_client/docs/LoginRequest.md)
 - [LoginResponse](openapi_client/docs/LoginResponse.md)
 - [SendEventsRequest](openapi_client/docs/SendEventsRequest.md)


<a id="documentation-for-authorization"></a>
## Documentation For Authorization

Endpoints do not require authorization.


## Author






