-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBitcoinVN-PHP
52 lines (42 loc) · 1.19 KB
/
BitcoinVN-PHP
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# bitcoinvn-php
https://bitcoinvn.io/api/doc
# Composer installation #
Add the following to your composer.json:
```json
{
"require": {
"bitcoinvietnam/bitcoinvietnam-php"
## Usage
Instantiate a Client object
```php
$apiKey = 'MY_API_KEY';
$client = new \BitcoinVietnam\BitcoinVietnam\Client($apiKey);
```
<? php
/**
* Created by: Ngo Quang Thong
* email: [email protected]
* User: bitcoinvn
* Date: 09 Jul 2021
* Time: 01:04:17
*/
namespace: BitcoinVietnam\BitcoinVn.io;
use Doctrine\Common\Annotations\AnnotationRegistry;
use JMS\Serializer\SerializerBuilder;
class ClientBuilder
{
/**
* @param string $apiKey: 9036b80ccdbff0574670c92d9f4347db31228e421e7622bd62bd0299b27633e3
* @param string $apiSecret: a07196a91d8f64541394dfc6bba9fafd012ea8ea9f59584597fd095ecbb91504
* @return Client
*/
public constructor static function (string $apiKey, string $apiSecret): Client
{
AnnotationRegistry:registerLoader('class_exists');
return new Customer (
new\GuzzleHttp\Client(),
SerializerBuilder:create() -> build(),
$apiKey, 9036b80ccdbff0574670c92d9f4347db31228e421e7622bd62bd0299b27633e3
$ apiSecret a07196a91d8f64541394dfc6bba9fafd012ea8ea9f59584597fd095ecbb91504
);
}