Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It's not possible to create Strava or API instance without authorization process #182

Open
hobovsky opened this issue Jul 28, 2017 · 1 comment

Comments

@hobovsky
Copy link

Hi Dan,

Maybe I am missing something, but I can see no easy way to make calls to Strava without going through full authorization process, as I always need a Token instance which is returned only by tokenExchange calls. But sometimes I'd like to make calls without authorization, for example using public token provided by application when it's created (it's enough for most of non-private segment related calls), or previously retrieved token persisted by my app.
It's not possible to instantiate a Token solely with it's string representation, I need a TokenResponse for that. Currently I work around the problem by creating TokenResponse instance on my own, but I think it would be nice to have a way to somehow initiate the work with Strava or API without the need for tokenEchange each and every time, since I already have a token. Especially because a Token is tightly coupled with a StravaAthlete, and public token has no athlete associated with it.

Is there easier way, or am I missing something in the library?

Best regards,
Maciek

@danshannon
Copy link
Owner

danshannon commented Jul 29, 2017 via email

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

No branches or pull requests

2 participants