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

Update tests to show how you'd test against a live API #3

Open
FokkeZB opened this issue Oct 30, 2017 · 0 comments
Open

Update tests to show how you'd test against a live API #3

FokkeZB opened this issue Oct 30, 2017 · 0 comments

Comments

@FokkeZB
Copy link
Contributor

FokkeZB commented Oct 30, 2017

The tests in the sample app use an endpoint that is hard-wired to accept code:one_time_code, access_token:a_token and refresh_token:a_refresh_token. This will fail for any other, live API.

The tests should show how to test an OAuthV2 API and deal with the (expiring) access tokens. Should you get your hands on a token and update that every time you run the tests (like we do for Python apps)? Is there another way?

Perhaps a link to https://github.com/zapier/zapier-platform-example-app-onedrive#testing will do?

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

No branches or pull requests

1 participant