GithubHelp home page GithubHelp logo

bitcasa-sdk-php's Introduction

Bitcasa SDK for PHP 5.3+

Bitcasa SDK for PHP, providing access to Bitcasa's REST API.

License: MIT

Requirements:

  • PHP 5.3+
  • pecl_http extension from PEAR

Setup

Include the BitcasaClient.php file:

require_once('BitcasaClient.php');

Get A Bitcasa Developer API Key

In order to access the API successfully, you need to first get an API key from Bitcasa.

  • Go to: https://developer.bitcasa.com/
  • Either sign up with your Bitcasa account, or log in with it
  • Click "Console" on the top header, and "Create App" on the top right
  • Save your Client ID and your Client Secret locally; you will use them in your code

Using The Bitcasa API

In order to access a Bitcasa user's files, you'll need to do authorize your application with the user via our authentication exchange. Once completed, you'll gain an access token that you can utilize for API usage.

Example

In the example folder is index.php and example.php. If you edit index.php to have your client id in the href of the link on the page, you'll be able to complete an authentication exchange flow and come back to example.php, which executes several API calls as examples.

Note that this expects a redirect variable of http://localhost/bc/example.php. Change that as well in order to fit your needs.

bitcasa-sdk-php's People

Contributors

bitcasa2 avatar kimico avatar rallan99 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.