Skip to main content

Fox API

Project description

foxclient

Warning: Please add a custom 'X-FoxAPI-App=MyAppName' header to your requests. This would help us fighting against DDoS attacks in future, while keeping your application's access to the API. In future, this may be a mandatory requirement.

To reduce the system load, the API endpoints are rate limited. The default limit is 20 requests per minute. Contact admin@orangefox.tech if you need a higher limit.

The requests may be logged for analytics and development purposes.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 5.1.1
  • Package version: 1.0.0
  • Generator version: 7.13.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.9+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import foxclient

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import foxclient

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import foxclient
from foxclient.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = foxclient.Configuration(
    host = "http://localhost"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

configuration.access_token = os.environ["ACCESS_TOKEN"]

# Configure Bearer authorization (JWT): bearer_auth
configuration = foxclient.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)


# Enter a context with an instance of the API client
with foxclient.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = foxclient.DeviceApi(api_client)
    device_id = 'device_id_example' # str | 

    try:
        # Get Device
        api_response = api_instance.get_device_devices_device_id_get(device_id)
        print("The response of DeviceApi->get_device_devices_device_id_get:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DeviceApi->get_device_devices_device_id_get: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
DeviceApi get_device_devices_device_id_get GET /devices/{device_id} Get Device
DeviceApi get_device_extended_devices_get_get GET /devices/get Get Device Extended
DeviceApi get_devices_list_devices_get GET /devices/ Get Devices List
DeviceApi get_oems_list_oems_get GET /oems/ Get Oems List
ReleaseApi get_release_extended_releases_get_get GET /releases/get Get Release Extended
ReleaseApi get_release_releases_release_id_get GET /releases/{release_id} Get Release
ReleaseApi get_releases_releases_get GET /releases/ Get Releases
ReleaseApi get_updates_updates_last_known_id_get GET /updates/{last_known_id} Get Updates
StatsApi public_stats_stats_get GET /stats/ Public Stats

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

bearer_auth

  • Type: Bearer authentication (JWT)

oauth2_password

  • Type: OAuth
  • Flow: password
  • Authorization URL:
  • Scopes: N/A

Author

admin@orangefox.tech

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

foxclient-1.0.0.tar.gz (37.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

foxclient-1.0.0-py3-none-any.whl (61.7 kB view details)

Uploaded Python 3

File details

Details for the file foxclient-1.0.0.tar.gz.

File metadata

  • Download URL: foxclient-1.0.0.tar.gz
  • Upload date:
  • Size: 37.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.3 Linux/5.15.0-307.178.5.el9uek.x86_64

File hashes

Hashes for foxclient-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1a06f4d93a6a5182a5800c3aaeee1773bebcf306cb5f04f6e60cf6edf80929dc
MD5 bc6f7ccf9c6e9c76e0aa3f94c9e83705
BLAKE2b-256 80d7683a616314aea9433825ab6e680ee6b8f01f10a88d9a0a8231f886d001cd

See more details on using hashes here.

File details

Details for the file foxclient-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: foxclient-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 61.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.3 Linux/5.15.0-307.178.5.el9uek.x86_64

File hashes

Hashes for foxclient-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0e331757cc48621b12a2515860c9a09ce31663a9b5a24cac42f35720a98e3137
MD5 548aaeb23d9c739aa9ec84c5334f1561
BLAKE2b-256 6b9bddd6038fa4ff2d2846848d256112fd3878f6c7f1e032a5754580723ca0eb

See more details on using hashes here.

Supported by

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