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 b2AuthorizeAccount.R #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

simon-tarr
Copy link

It doesn't look this package has been updated in several years. I found that I couldn't get b2AuthorizeAccount() to work with the current version of the b2 API without some small changes to the code.

This small PR:

  • Renames function argument names to match those in Backblaze (accountID -> keyID, authorizationKey -> applicationKey)
  • Pulls the right variable from the reponse, which has changed between v1 and v3
  • Changes the API URL from v1 to v3

Updated authorise account method to align with B2 v3 API.
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

Successfully merging this pull request may close these issues.

None yet

1 participant