Skip to main content

Fox API

Project description

foxinternalclient

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.8
  • Package version: 5.2.8
  • 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 foxinternalclient

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 foxinternalclient

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import foxinternalclient
from foxinternalclient.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 = foxinternalclient.Configuration(
    host = "https://api.orangefox.download"
)



# Enter a context with an instance of the API client
async with foxinternalclient.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = foxinternalclient.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
FoxFactoryApi cancel_task_factory_task_id_cancel_post POST /factory/{task_id}/cancel Cancel Task
FoxFactoryApi delete_task_factory_task_id_delete DELETE /factory/{task_id} Delete Task
FoxFactoryApi download_artifact_factory_task_id_artifact_get GET /factory/{task_id}/artifact Download Artifact
FoxFactoryApi factory_status_factory_status_get GET /factory/status Factory Status
FoxFactoryApi get_task_factory_task_id_get GET /factory/{task_id} Get Task
FoxFactoryApi list_tasks_factory_get GET /factory/ List Tasks
FoxFactoryApi new_task_factory_post POST /factory/ New Task
FoxFactoryApi update_task_factory_task_id_patch PATCH /factory/{task_id} Update Task
FoxFactoryApi update_worker_status_factory_update_status_post POST /factory/update_status Update Worker Status
FoxFactoryApi upload_artifact_factory_task_id_artifact_post POST /factory/{task_id}/artifact Upload Artifact
GitlabApi device_add_gitlab_repo_gitlab_device_device_id_gitlab_post POST /gitlab/device/{device_id}/gitlab Device Add Gitlab Repo
InternalApi change_password_profile_change_password_post POST /profile/change_password Change Password
InternalApi del_release_internal_releases_release_id_delete DELETE /internal/releases/{release_id} Del Release
InternalApi delete_paste_internal_paste_paste_id_delete DELETE /internal/paste/{paste_id} Delete Paste
InternalApi delete_user_internal_users_user_id_delete DELETE /internal/users/{user_id} Delete User
InternalApi edit_release_internal_releases_release_id_put PUT /internal/releases/{release_id} Edit Release
InternalApi get_device_info_internal_devices_device_id_get GET /internal/devices/{device_id} Get Device Info
InternalApi get_logs_internal_logs_get GET /internal/logs/ Get Logs
InternalApi get_release_info_internal_releases_release_id_get GET /internal/releases/{release_id} Get Release Info
InternalApi get_release_zip_internal_releases_release_id_dl_get GET /internal/releases/{release_id}/dl Get Release Zip
InternalApi get_user_by_id_internal_users_user_id_get GET /internal/users/{user_id} Get User By Id
InternalApi list_users_internal_users_get GET /internal/users/ List Users
InternalApi login_oauth_auth_login_post POST /auth/login Login Oauth
InternalApi logout_auth_logout_post POST /auth/logout Logout
InternalApi new_device_internal_devices_post POST /internal/devices/ New Device
InternalApi new_release_internal_releases_post POST /internal/releases/ New Release
InternalApi renew_auth_renew_post POST /auth/renew Renew
InternalApi update_device_internal_devices_device_id_put PUT /internal/devices/{device_id} Update Device
InternalApi update_paste_internal_paste_paste_id_put PUT /internal/paste/{paste_id} Update Paste
InternalApi update_user_internal_users_user_id_put PUT /internal/users/{user_id} Update User
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

foxinternalclient-5.2.8.tar.gz (62.3 kB view details)

Uploaded Source

Built Distribution

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

foxinternalclient-5.2.8-py3-none-any.whl (127.3 kB view details)

Uploaded Python 3

File details

Details for the file foxinternalclient-5.2.8.tar.gz.

File metadata

  • Download URL: foxinternalclient-5.2.8.tar.gz
  • Upload date:
  • Size: 62.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 foxinternalclient-5.2.8.tar.gz
Algorithm Hash digest
SHA256 1c47f6aa9a2af03d7b5efe0cf25b83502985c2c87b86e3adb939b399c04cb973
MD5 cd31a7283f5c3cafa7c102ca9104143f
BLAKE2b-256 4c2b9e6fc9fd7c2a74891a595f11f52e906d9f325374c1539b444bcc4fe92abd

See more details on using hashes here.

File details

Details for the file foxinternalclient-5.2.8-py3-none-any.whl.

File metadata

  • Download URL: foxinternalclient-5.2.8-py3-none-any.whl
  • Upload date:
  • Size: 127.3 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 foxinternalclient-5.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 730dc41eb929d063e9def30339ed5baab89837ac8bfdc0074f5a98ad4ab92119
MD5 c5396a5fa074e585a8b78804788256ab
BLAKE2b-256 bee4e37337757e6fcb09ac39774bb3cb9a2acf047ebde8ae7a651a82472bc6f2

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