-
Notifications
You must be signed in to change notification settings - Fork 31
Add accounts tokens endpoints #43
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
Conversation
|
@morgant Thanks for your work on this? Do you know why Travis tests are failing? |
|
@samfader My guess on the Travis tests failing is that the tests now require a |
|
As customers, we'd love to see this feature of the SDK or something like it merged officially. 🚀 |
|
@morgant Did a bit more research into the failing tests this morning. It looks like they are failing because your PR is coming from your forked repo. More here: https://docs.travis-ci.com/user/pull-requests/#pull-requests-and-security-restrictions How would you feel about making a PR directly from within this repo, rather than from your fork? While we can ignore the non-accounts related tests, the test you wrote are failing for the same reason as well, and I want to get those passing on here before merging. If anyone knows of a better way to do this, let me know. I don't have a ton of experience with Travis builds nor a ton of time to dedicate to more research into this, so just trying to go with what seems like the simplest solution. |
|
@samfader That does make sense for the cause. It certainly makes sense to try creating a new branch on the main repo with the changes from my forked branch. You should be able to do so without my needing to be a contributor by treating it like merging an upstream repository into your fork, though checking out the new branch instead of master, as suggested in the GitHub article on the subject. Is that something you'd be willing to try? If so, thanks in advance. |
This adds support for the Tokens API (see Issue #41) by adding a
Tokensclass with the following methods:#list_tokens,#get_token,#create_token,#delete_token,#update_token, and#list_scopes.It also modifies
Mapbox#requestto better support POST operations, incl. sending headers and JSONified parameters.Documentation & tests are included, though tests are not currently mocked and actually create/update/delete tokens.