Skip to main content

Fox API

Project description

foxclient

Warning: Please add a custom user agent 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 30 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.2.7
  • Package version: 5.2.7
  • 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 https://api.orangefox.download
# See configuration.py for a list of all supported configuration parameters.
configuration = foxclient.Configuration(
    host = "https://api.orangefox.download"
)



# Enter a context with an instance of the API client
async 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 |  (optional)
    id = 'id_example' # str | Filter by Device ID (deprecated) (optional)
    codename = 'codename_example' # str | Not recommended to use when you can (optional)

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

Documentation for API Endpoints

All URIs are relative to https://api.orangefox.download

Class Method HTTP request Description
DeviceApi get_device GET /devices/get Get Device
DeviceApi get_device_deprecated GET /devices/{device_id} Get Device Short
DeviceApi get_devices GET /devices/ Get Devices
DeviceApi get_oems GET /oems/ Get Oems
PasteApi create_paste_paste_post POST /paste/ Create Paste
PasteApi get_paste_paste_paste_id_get GET /paste/{paste_id} Get Paste
ReleaseApi get_release GET /releases/get Get Release
ReleaseApi get_release_deprecated GET /releases/{release_id} Get Release Short
ReleaseApi get_releases GET /releases/ Get Releases
ReleaseApi get_updates_deprecated GET /updates/{last_known_id} Get Updates
StatsApi get_public_stats 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-5.2.7.tar.gz (38.3 kB view details)

Uploaded Source

Built Distribution

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

foxclient-5.2.7-py3-none-any.whl (66.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for foxclient-5.2.7.tar.gz
Algorithm Hash digest
SHA256 04da9269e4a624adeec1b8b98f8493cd6ef3cbf57d513098bcabdb0c77ba6e02
MD5 392264545bfcf9be7390cd59bc946cd9
BLAKE2b-256 0a0a1eea0854be04b43d973b6ec3080c6b4a4a0f7cd38ae85f4f7e14da509b87

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for foxclient-5.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e16fa6e3fbafc60ddbce3f1bc31860914623d08e210fa4932f2e3c3492981817
MD5 c925aedac799c97b49b72243637b9cbe
BLAKE2b-256 4d9425d1aff8e500269a26698771bf31b240868ffe42ce951a8d713d7da6f342

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