ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Solved Has anyone used the B2 API

    IT Discussion
    backblaze b2 b2 api authentication
    2
    8
    874
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JaredBuschJ
      JaredBusch
      last edited by JaredBusch

      I signed up for a B2 account.

      I created a bucket.

      I created an application key.

      I cannot authenticate to the API.

      0_1542064328375_a2b59371-67fa-47c0-8f5b-0e5702d570c6-image.png

      Guide: https://www.backblaze.com/b2/docs/b2_authorize_account.html

      1 Reply Last reply Reply Quote 1
      • JaredBuschJ
        JaredBusch
        last edited by JaredBusch

        Got it. I was using the account id with an application key.

        A more careful reading of the above linked page shows that:

        0_1542076748186_e6061550-5167-4def-b9b5-5b89e859f408-image.png

        So that was the disconnect.

        • Application Key requires Application ID.
        • Account ID requires Master Application Key.

        When the examples clearly stated ACCOUNT_ID and APPLICATION_KEY

        0_1542076683650_e8a7c2f9-0a93-4c35-b429-0bf24767fe33-image.png

        1 Reply Last reply Reply Quote 2
        • DustinB3403D
          DustinB3403
          last edited by

          The method I use to connect to sync is b2 authorize-account Accountid application key

          JaredBuschJ 2 Replies Last reply Reply Quote 0
          • JaredBuschJ
            JaredBusch @DustinB3403
            last edited by

            @DustinB3403 said in Has anyone used the B2 API:

            The method I use to connect to sync is b2 authorize-account Accountid application key

            I cannot use their client. This will be a web application.

            1 Reply Last reply Reply Quote 0
            • DustinB3403D
              DustinB3403
              last edited by

              Eh. . .

              I just use python to sync via the CLI from directory 1 to b2://whatevers

              1 Reply Last reply Reply Quote 0
              • JaredBuschJ
                JaredBusch
                last edited by

                B2's example for cUrl is exactly this.
                0_1542064850989_d0862b79-c99a-477f-9eed-65d3f8ca6c5f-image.png

                But all other examples, and their text state that is should include the word basic and be base 64 encoded.

                While I can do that, I was under the impression I could "prove" the solution via cUrl.

                1 Reply Last reply Reply Quote 0
                • JaredBuschJ
                  JaredBusch
                  last edited by

                  C# example.
                  0_1542065051725_88cdf484-01d4-43a5-8ad2-dd1cc69d7d46-image.png

                  1 Reply Last reply Reply Quote 0
                  • JaredBuschJ
                    JaredBusch @DustinB3403
                    last edited by

                    @DustinB3403 said in Has anyone used the B2 API:

                    The method I use to connect to sync is b2 authorize-account Accountid application key

                    To verify I was not being stupid, I installed b2 locally as pip is already installed on my Fedora 29 Desktop.

                    0_1542065878276_9694c51d-6ee9-40f0-a93e-de2bf735f9a4-image.png

                    So account problem of some kind.

                    But it is created, and verified.

                    1 Reply Last reply Reply Quote 1
                    • JaredBuschJ
                      JaredBusch
                      last edited by JaredBusch

                      Got it. I was using the account id with an application key.

                      A more careful reading of the above linked page shows that:

                      0_1542076748186_e6061550-5167-4def-b9b5-5b89e859f408-image.png

                      So that was the disconnect.

                      • Application Key requires Application ID.
                      • Account ID requires Master Application Key.

                      When the examples clearly stated ACCOUNT_ID and APPLICATION_KEY

                      0_1542076683650_e8a7c2f9-0a93-4c35-b429-0bf24767fe33-image.png

                      1 Reply Last reply Reply Quote 2
                      • 1 / 1
                      • First post
                        Last post