Yii 1.1: bitcoin

Bitcoin extension simplify incorporation of Bitcoin (Coinbase) into your Yii application.
7 followers

Bitcoin extension simplify incorporation of Bitcoin API (Coinbase) into your Yii application.Now you can start integrate Bitcoin with your Yii e-commerce apps.

Requirements

Yii 1.1

Usage

1.Download the package and extract into your components folder.

2.update components section in config.php

'bitcoin' => array(
                                      'class'=>'application.components.bitcoin.Bitcoin',
 
                                      'API_KEY' => '',
                                      'CLIENT_SECRET' => '',
                                      'CLIENT_ID' => '', 
 
                                      'CALLBACK_URL'=>'site/bitcoinCallback',
 
                                      'CANCEL_URL'=>'site/bitcoinCancel',
 
                                      'SUCCESS_URL'=>'site/bitcoinSuccess',
 
                                      ),

-----you are done.

Asking User permission

$scope=array(
       'all'
     );    
Yii::app()->bitcoin->askPermission($scope);

get user access token to manage user account.

Yii::app()->bitcoin->getAccessToken($code);

Note1: SignUp at https://coinbase.com to make a coin base app ,there you will find your API_kEY,CLIENT_ID,CLIENT_SECRET.

Dont worry.. * See more usage documentation here

Resources

Regards,

Sirin K

Yii developer

Total 1 comment

#19036 report it
wwwabcd at 2015/03/01 11:39am
api error

I used this tutorial https://bitcointradr.uservoice.com/knowledgebase/articles/288816-finding-your-coinbase-api-key and got api_key but show this error: {"error":"Invalid api_key"}

Leave a comment

Please to leave your comment.

Create extension
Downloads