Skip to content

How to setup new access token when working on one client object? #97

@blasbike

Description

@blasbike

I like the library and the separation approach.
My use case seems typical but is not easy to implement with the flow needed by this lib.
I have several strava events registered by webhook and I process them asynchronously in a batch.
Each event might be on behalf of different athlete.
So I need to initialize one Client and then setup access token per API call. But the Client depends on REST which has that token.
Any ideas how to achieve that? Something like Client::setToken()?

In my other project I use iamstuartwilson/strava which supports full flow (integrated) but lacks other stuff (like streams).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions