Skip to main content

Accesses The One API

Project description

Daniel Cavazos SDK

The daniel-cavazos-sdk package provides a Python client library for interacting with The One API. This library provides a convenient TheOneClient class that provides methods for interacting with The One API.

Installation

You can install the daniel-cavazos-sdk package using pip:

pip install daniel-cavazos-sdk

Usage

First, import the TheOneClient class from the daniel_cavazos_sdk module:

from daniel_cavazos_sdk.client import TheOneClient

Then, create an instance of the TheOneClient class with your API token:

client = TheOneClient(token="your-api-token")

Now, you can use the various methods available in the TheOneClient class to interact with TheOneAPI:

# get all movies
all_movies = client.get_movies()

# get a specific movie by ID
movie = client.get_movie(id="123")

# get all quotes for a specific movie by ID
movie_quotes = client.get_movie_quotes(id="123")

# get all quotes
all_quotes = client.get_quotes()

# get a specific quote by ID
quote = client.get_quote(id="123")

Each method returns the parsed JSON response from the API. If the response has a non-2xx status code, a requests.exceptions.HTTPError is raised.

Contributing

If you find any bugs or issues with this package, please report them on the GitHub Issues page.

If you would like to contribute to the development of this package, please fork the repository and submit a pull request with your changes.

License

This package is distributed under the MIT License. See the LICENSE file for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

daniel-cavazos-sdk-0.1.0.tar.gz (3.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page