Download the PHP package kukulkan-popolvux/coinspaid-api-php without Composer
On this page you can find all versions of the php package kukulkan-popolvux/coinspaid-api-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kukulkan-popolvux/coinspaid-api-php
More information about kukulkan-popolvux/coinspaid-api-php
Files in kukulkan-popolvux/coinspaid-api-php
Package coinspaid-api-php
Short Description The package provides a convenient interface for interacting with the API (v2) for the service https://coinspaid.com
License MIT
Informations about the package coinspaid-api-php
coinspaid-api-php
The package provides a convenient interface for interacting with the API (v2) for the service CoinsPaid
Installation
composer
Use the package manager composer to install coinspaid-api-php
Usage
You can use the library immediately after configuration without specifying any additional values.
Example:
or
The Response object is returned. Calling the
getBody()
method will return the response body
The answer should returnOK
, it works without a secret key and an api key.
This is just a test of the library connection and its interaction with the CoinsPaid service.
documentation
Example:
or
To obtain
$apiKey
and$secretKey
, you must perform the following steps, which are described in the documentation
By default, the development environment is listed as production ($environment = 'prod'
). You can select two valuestest
andprod
getBodyObject()
will return the response body converted to object or you can usegetBody(true)
method with parametertrue
Get a list of all supported currencies.
documentation
Example:
Returns the
data
value from the request response.
You can pass a parameter to a methodgetData('currency')
that will return a value by the key that you passed as a parameter