Ответы пользователя по тегу API
  • Как сформировать запрос на создание Exmo кода?

    h4r7w3l1
    @h4r7w3l1
    ## Getting Started
    Install composer in your project: ```curl -s https://getcomposer.org/installer | php```
    
    Create a composer.json file in your project root: ```{
        "require": {
            "exmo/api": "1.*"
        }
    }```
    
    Install via composer:```php composer.phar install```
    
    ```php
    use Exmo\Api\Request;
    
    require 'vendor/autoload.php';
    
    $request = new Request('your_key', 'your_secret');
    $result = $request->query('user_info');
    ...
    ```

    https://github.com/exmo-dev/exmo_composer.git

    create new file ./exmo_composer/exmo_make_gc.php
    insert your api keys "K-xxxxxxxxxxxxxxx" + "S-xxxxxxxxxxxxxxxxx"

    <?php
    use Exmo\Api\Request;
    require 'vendor/autoload.php';
    
    $request = new Request('K-00000000000000aaaaaaaaaaaaaaaaaaaaa', 'S-dddddddddddddddddaaaaaaaaaaaaaaassssss');
    $result = $request->query('excode_create', Array(   'currency'=>'RUB',    'amount'=>1000,));
    var_dump($result);

    Request will return code for redeem
    Ответ написан
    Комментировать