Skip to content

Conversation

@dgulinobw
Copy link

Example usage:

class DogClient(APIClient):
    def __init__(self, 
                 base_url,
                 apikey=""
                 ):
        authentication_method=HeaderAuthentication(
            token=apikey,
            parameter="apikey",
            scheme=None
            )
        super().__init__(authentication_method=authentication_method,
                       response_handler=JsonResponseHandler,
                       request_formatter=JsonRequestFormatter)
        self.authentication_method = authentication_method
        self.apikey = apikey
        self.endpoint = self.Endpoint(base_url=base_url)
        self.set_request_timeout(30.0)

code: https://github.com/relaypro-open/dog_api_python/blob/abf88bf448f085e1cf4ad8fb2407384bf9c5fa61/src/dog/api.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant