Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
After releasing app key based authentication, the JS SDK never got updated to explicitly supporting it. This PR adds app key auth and updates the Readme with more up to date examples.
Design choices
You can supply
appKey
into thetimekit.configure()
method. Or use thetimekit.setAppKey()
method to set/update it later.Side-effects/other
When App Widget Key is officially released, the Readme should be updated to reflect that.
Tests
Made a test that check the request headers are set correctly.
Who should review it
@vistik