Skip to main content

Lord of the rings sdk in Python

Project description

Lord of the rings sdk

SDK for Lord of the rings api

Setup

Install

  pip install lord-of-the-rings-sdk

API Reference

Imports

  from lord_of_the_rings_sdk import LordOfTheRings
  # The first argument is the token
  api = LordOfTheRings(base_url='url to api', token='your token')

Get items example movie

  # Returns requests.models.Response object
  resp = api.movie()

  # Returns json object
  resp.json()

Get single item example quote

  # if the_id is specified it returns item with specified id
  resp = api.quote(the_id="id of the item")

  # Returns json object
  resp.json()

Get single movie with quate

  # if the_id is specified it returns item with specified id
  resp = api.quote(the_id="id of the item", extra_path='quote')

  # Returns json object
  resp.json()

Tests

  • Clone the repo

  • run 'test/name of test'

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

andrew-richards-sdk-0.0.1.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

andrew_richards_sdk-0.0.1-py3-none-any.whl (2.2 kB view hashes)

Uploaded Python 3

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