Skip to main content

DUPR Production APIs with httpx

Project description

dupr-prod-httpx

External RESTful APIs to access DUPR ratings, users and provide matches.

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

  • API version: v1.0.0
  • Package version: 1.0.0
  • Generator version: 7.16.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 dupr_prod_httpx

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 dupr_prod_httpx

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import dupr_prod_httpx
from dupr_prod_httpx.rest import ApiException
from pprint import pprint

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



# Enter a context with an instance of the API client
async with dupr_prod_httpx.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = dupr_prod_httpx.ApiRegistrationApi(api_client)
    version = 'v1.0' # str | version (default to 'v1.0')

    try:
        # getAll
        api_response = await api_instance.get_all_using_get(version)
        print("The response of ApiRegistrationApi->get_all_using_get:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling ApiRegistrationApi->get_all_using_get: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://prod.mydupr.com

Class Method HTTP request Description
ApiRegistrationApi get_all_using_get GET /api/{version}/topic getAll
ApiRegistrationApi register_using_post POST /api/{version}/webhook register
AuthenticationApi login_using_post POST /api/auth/{version}/token Generate Access Token
ClubApi club_members_rating_using_post POST /api/club/{version}/members Club Members Rating
MatchApi delete_match_using_delete DELETE /api/match/{version}/delete Delete Match
MatchApi save_match_in_bulk_using_post POST /api/match/{version}/batch Create Match in Bulk
MatchApi save_match_using_post POST /api/match/{version}/create Create Match
MatchApi search_match_history_using_post POST /api/match/history/search Get Match History
MatchApi update_match_using_post POST /api/match/{version}/update Update a match
MatchApi view_match_using_get GET /api/match/{version}/{id} viewMatch
PlayerApi get_player_duprid_by_email_using_post POST /api/{version}/player/duprid-by-email Get DUPR ID by Email
PlayerApi get_rank_of_players_using_post POST /api/{version}/player Players Rating
PlayerRatingApi get_client_players_subscription_using_get GET /api/{version}/subscribe/rating-changes Fetch Players subscription by Client
PlayerRatingApi get_player_rating_history_by_user_using_post POST /api/history getPlayerRatingHistoryByUser
PlayerRatingApi remove_player_subscription_using_delete DELETE /api/{version}/subscribe/rating-changes Removes players rating
PlayerRatingApi subscribe_player_rating_using_post POST /api/{version}/subscribe/rating-changes Subscribe players rating
UsersApi create_user_provisional_rating_using_post POST /api/user/{version}/provisional_rating/create Set the provisional rating for a player
UsersApi delete_user_provisional_rating_using_delete DELETE /api/user/{version}/provisional_rating/delete Delete the provisional rating for a player
UsersApi get_club_membership_by_dupr_id_using_get GET /api/user/{version}/{id}/clubs Retrieve the club membership for a user by DUPR Id
UsersApi get_user_provisional_rating_using_post POST /api/user/{version}/provisional_rating Get the provisional rating for a player
UsersApi invite_user_using_post POST /api/user/{version}/invite Pre-generate a dupr ID and invite a user to join
UsersApi update_user_provisional_rating_using_post POST /api/user/{version}/provisional_rating/update Set the provisional rating for a player
UsersApi user_detail_using_get GET /api/user/{version}/{id} User Info
UsersApi user_search_using_post POST /api/user/{version}/search User Search

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Author

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

dupr_prod_httpx-1.0.1.tar.gz (51.8 kB view details)

Uploaded Source

Built Distribution

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

dupr_prod_httpx-1.0.1-py3-none-any.whl (93.3 kB view details)

Uploaded Python 3

File details

Details for the file dupr_prod_httpx-1.0.1.tar.gz.

File metadata

  • Download URL: dupr_prod_httpx-1.0.1.tar.gz
  • Upload date:
  • Size: 51.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dupr_prod_httpx-1.0.1.tar.gz
Algorithm Hash digest
SHA256 8c0440a61c8194b1b19e28d82ae7dd05c4571c45383708c8b2f595a6bcc206a8
MD5 77e9f4dc39ea3254a3df6c42fd9787b2
BLAKE2b-256 d1578fd31939374829b96bc3f2a32bfc15c89bf5abe23598e25f165b319b2b82

See more details on using hashes here.

Provenance

The following attestation bundles were made for dupr_prod_httpx-1.0.1.tar.gz:

Publisher: publish.yml on Lighthouse-Pickleball/dupr_prod_httpx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dupr_prod_httpx-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for dupr_prod_httpx-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d7ba18940e118dbed113aa23ef2b950485bdff48145db30e7274b73c27257ce8
MD5 1ab3f718ba65abe3c91ca86fb58d6886
BLAKE2b-256 a9e5b67aa0cbfb8c9d5c025782ef012f33d2ef573a0dd5db311c9866f5202b10

See more details on using hashes here.

Provenance

The following attestation bundles were made for dupr_prod_httpx-1.0.1-py3-none-any.whl:

Publisher: publish.yml on Lighthouse-Pickleball/dupr_prod_httpx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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