deleted deleted

deleted deleted   •   over 11 years ago

OAuth sample for Test Accounts?

The docs appear to cover the OAuth flow for using real accounts that administered with the admin panel. Yet the Test Account setup page indicates that Bitcasa in that unique context acts as the OAuth server for you. Is there a doc or code sample that details exactly how to use the access token you generated with the Test Account panel in an HTTP request? Is it just the simple matter of adding the Test Account access token to the HTTP request using the Authentication header property?

  • 2 comments

  • Manager   •   over 11 years ago

    Hi roscherl!

    Thanks for your questions. Once you have an access token, you can attach it to the request as documented within the 'Example Usage of the Bearer access token' section of the Bitcasa CloudFS documentation: https://bitcasa.com/cloudfs-api-docs/index.html

    Authentication Operations > OAuth2 Password Credentials Grant > Example Usage of the Bearer access token

    Let me know if that helps and if you have any other questions.

    Thanks!

  • Manager   •   over 11 years ago

    Hi roschler,

    When you get to the documentation section "OAuth2 Password Credentials Grant" you'll need to scroll down to activate the sub-categories of the topic. From there, you should see the "Example Usage of the Bearer access token" section.

    As for an examples, here are two:

    Terminal:
    curl -Gv "https:///v2/folders/?access_token="

    eg.
    curl -Gv "https://bleezx0fe0.cloudfs.io/v2/folders/?access_token=US2.6fda4da25edb4599956b139e6a4ee99a.EV6eXEFE0ozBoOjgym28Vde01oa503Imv4GM"

    Postman:
    I love to use Postman to test my API calls. They have a great chrome extension you can download from their app store. Here's a link to view my example of a simple GET request using Postman: http://l.bitcasa.com/eiZUg-kh

    I hope this help. Let me know if you have any additional questions.

    Thanks!

Comments are closed.