Skip to main content

An API for Influence (influenceth.io)

Project description

Influence API

A python API for Influence.

Development

You must have an API key from Influence to develop or use the API. Contact DarkosNightmare#8555 on Discord, and request a production API key.

The preferred development environment is GitPod.

You will need the following environment variables defined to run unit tests:

  • INFLUENCE_CLIENT_ID
  • INFLUENCE_CLIENT_SECRET

Otherwise, tests relying on the live API will be skipped.

Usage

from influence_api import InfluenceClient

client = InfluenceClient(client_id="", client_secret="")

# Retrieve an asteroid
asteroid = client.get_asteroid(1)

# Retrieve a crew member
crewmember = client.get_crewmate(1)

# Use string options for key values (if applicable)
crewmember2 = client.get_crewmate(1, names=True)

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

influence-api-0.2.2.tar.gz (11.4 kB view hashes)

Uploaded Source

Built Distribution

influence_api-0.2.2-py2.py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 2 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