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..
Resources ¶
Regards,
Sirin K
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"}
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.