You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+84-44Lines changed: 84 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ Put the following into your composer.json
26
26
27
27
{
28
28
"require": {
29
-
"sandrokeil/blockchain-wallet-api": "dev-master"
29
+
"sandrokeil/blockchain-wallet-api": "~1.0"
30
30
}
31
31
}
32
32
@@ -38,7 +38,7 @@ Copy `config/blockchainwalletapi.local.php.dist` to `config/blockchainwalletapi.
38
38
39
39
Please refer to [blockchain wallet api documentation](https://blockchain.info/en/api/blockchain_wallet_api) for request details.
40
40
41
-
These request classes matches to api methods
41
+
**These request classes matches to api methods**
42
42
43
43
* Send => payment
44
44
* SendMany => sendmany
@@ -50,7 +50,47 @@ These request classes matches to api methods
50
50
* AddressUnarchive => unarchive_address
51
51
* AutoConsolidateAddresses => auto_consolidate
52
52
53
-
Here is an example how to send bitcoins to a bitcoin address:
53
+
## Configuration
54
+
Connection parameters can be defined in the application configuration:
55
+
56
+
```php
57
+
<?php
58
+
59
+
return array(
60
+
'sake_bwa' => array(
61
+
'connection' => array(
62
+
'default' => array(
63
+
'options' => array(
64
+
// see \Sake\BlockchainWalletApi\Service\BlockchainWalletOptions for all configurations
65
+
'url' => 'https://blockchain.info/de/merchant/', // note on your country
66
+
'guid' => 'your My Wallet identifier (found on the login page)',
67
+
'main_password' => 'Your Main My wallet password',
68
+
'second_password' => 'Your second My Wallet password if double encryption is enabled',
69
+
),
70
+
'client' => 'Service factory name for Http Client, Lazy-loads a Zend\Http\Client instance if none registered'
71
+
)
72
+
)
73
+
)
74
+
);
75
+
```
76
+
77
+
## Registered service names
78
+
*`sake_bwa.service.default`: a \Sake\BlockchainWalletApi\Service\BlockchainWallet instance to send requests to the api
79
+
*`sake_bwa.service.response`: a \Sake\BlockchainWalletApi\Service\ResponsePluginManager Service plugin manager to create responses via api method name
80
+
*`sake_bwa.service.request`: a \Sake\BlockchainWalletApi\Service\RequestPluginManager Service plugin manager to create requests via api method name
81
+
*`sake_bwa.service.input_filter`: a \Sake\BlockchainWalletApi\Service\InputFilterPluginManager Service plugin manager to create input filter via api method name
82
+
*`sake_bwa.service.hydrator`: a \Zend\Stdlib\Hydrator\ClassMethods instance with strategies and filters for requests/responses
83
+
84
+
## Registered view helper
85
+
To use this view helper you must add `zendframework/zend-view` to your composer dependencies.
86
+
87
+
*`satoshi`: a \Zend\View\Helper\AbstractHelper instance which converts satoshi to other unit e.g. bitcoin
88
+
89
+
## Examples
90
+
This module is very easy to use. However, these code snippets should help you to start.
91
+
92
+
### Send bitcoins
93
+
Here is an example how to send a transaction to a bitcoin address:
Connection parameters can be defined in the application configuration:
127
-
128
-
```php
129
-
<?php
130
-
131
-
return array(
132
-
'sake_bwa' => array(
133
-
'connection' => array(
134
-
'default' => array(
135
-
'options' => array(
136
-
// see \Sake\BlockchainWalletApi\Service\BlockchainWalletOptions for all configurations
137
-
'url' => 'https://blockchain.info/de/merchant/', // note on your country
138
-
'guid' => 'your My Wallet identifier (found on the login page)',
139
-
'main_password' => 'Your Main My wallet password',
140
-
'second_password' => 'Your second My Wallet password if double encryption is enabled',
141
-
),
142
-
'client' => 'Service factory name for Http Client, Lazy-loads a Zend\Http\Client instance if none registered'
143
-
)
144
-
)
145
-
)
146
-
);
147
-
```
148
-
149
-
## Registered service names
150
-
*`sake_bwa.service.default`: a \Sake\BlockchainWalletApi\Service\BlockchainWallet instance to send requests to the api
151
-
*`sake_bwa.service.response`: a \Sake\BlockchainWalletApi\Service\ResponsePluginManager Service plugin manager to create responses via api method name
152
-
*`sake_bwa.service.request`: a \Sake\BlockchainWalletApi\Service\RequestPluginManager Service plugin manager to create requests via api method name
153
-
*`sake_bwa.service.input_filter`: a \Sake\BlockchainWalletApi\Service\InputFilterPluginManager Service plugin manager to create input filter via api method name
154
-
*`sake_bwa.service.hydrator`: a \Zend\Stdlib\Hydrator\ClassMethods instance with strategies and filters for requests/responses
155
-
156
-
## Registered view helper
157
-
To use this view helper you must add `zendframework/zend-view` to your composer dependencies.
158
-
159
-
*`satoshi`: a \Zend\View\Helper\AbstractHelper instance which converts satoshi to other unit e.g. bitcoin
0 commit comments