Skip to content

Allow to use the same client for multiple users #92

@maingoh

Description

@maingoh

This would allow to use the same requests.Session with multiple users.
This imply overriding the api key while doing the request.

Probably we should have an interface like this:

user = Client(host=host).User(api_key=api_key)
user.RecognitionSpec.retrieve()

Or

client = Client(host=host)
user = User(client=client, api_key=api_key)
user.RecognitionSpec.retrieve()

It might be a breaking changes. We could somehow make it retrocompatible though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions