2017 © Pedro Peláez
 

library wexnz-c

Wex.nz REST API php client

image

devbalu/wexnz-c

Wex.nz REST API php client

  • Thursday, July 19, 2018
  • by DevBalu
  • Repository
  • 1 Watchers
  • 0 Stars
  • 31 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Wex.nz REST API PHP Client

Wex.nz provides REST APIs that you can use to interact with platform programmatically. Including also creating and redeeming coupons., (*1)

This API client will help you interact with Wex.nz by REST API., (*2)

License

MIT License, (*3)

Btc-e REST API Reference

Public API - https://wex.nz/api/3/docs, (*4)

Trade API - https://wex.nz/tapi/docs, (*5)

Push API - https://wex.nz/pushAPI/docs, (*6)

Install

composer require azkdev/wexnz-c

Usage

Basic usage:, (*7)

<?php

require __DIR__ . '/../vendor/autoload.php';

use azkdev\WexnzApi\WexnzApi;

$api = new WexnzApi(
    'https://wex.nz/tapi', // maybe other wex.
    '*******************', // public key.
    '*******************'  // secret key.
);


print_r($api->trade()->userInfo()); // prints all user wallet info.

For using createCoupon or redeemCoupon methods, you need 'trade' privilege for your api key. More info about 'trade' privilege you can find here., (*8)

$api->trade()->createCoupon('USD', 200, 'userName'); // Creating coupon with 'currency', 'amount' and 'user name'. User name can be empty string ''.

$api->trade()->redeemCoupon('**********'); // Redeem coupon. Argument is coupon code. Returns full info about transaction.

Mapping

Error handling

Running the tests

To run the tests, you'll need to install phpunit. Easiest way to do this is through composer., (*9)

composer install

Tests required running php built in server on 8000 port., (*10)

php -S localhost:8000

Running Unit tests

php vendor/bin/phpunit -c phpunit.xml.dist

The Versions

19/07 2018

dev-master

9999999-dev

Wex.nz REST API php client

  Sources   Download

MIT

The Requires

 

The Development Requires

api rest wex wex.nz

19/07 2018

2.1.0

2.1.0.0

Wex.nz REST API php client

  Sources   Download

MIT

The Requires

 

The Development Requires

api rest wex wex.nz

19/07 2018

2.0.0

2.0.0.0

Wex.nz REST API php client

  Sources   Download

MIT

The Requires

 

The Development Requires

api rest wex wex.nz

19/07 2018

1.0.0

1.0.0.0

Wex.nz REST API php client

  Sources   Download

MIT

The Requires

 

The Development Requires

api rest wex wex.nz