PHP code example of aquaio / aqua-io

1. Go to this page and download the library: Download aquaio/aqua-io library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

aquaio / aqua-io example snippets




// This file is generated by Composer
elow)

$auth = array('client_id' => '09a8b7', 'client_secret' => '1a2b3');

$client = new AquaIo\Client($auth, $clientOptions);

$token = $client->accessToken()->retrieve()->body['access_token']

$client = new AquaIo\Client($token, $clientOptions);

$response = $client->klass('args')->method('args', $methodOptions);

$response->code;
// >>> 200

$response->headers;
// >>> array('x-server' => 'apache')

$response->body;
// >>> array('user' => 'pksunkara')

$icd9 = $client->icd9();

$response = $icd9->topLevelCodes($options);

$response = $icd9->singleCode("066-4", $options);

$response = $icd9->searchByName("082-2", $options);

$response = $icd9->searchByDescription("eastern equine", $options);

$response = $icd9->searchByNameOrDescription("west nile", $options);

$icd10 = $client->icd10();

$response = $icd10->topLevelCodes($options);

$response = $icd10->singleCode("R50-9", $options);

$response = $icd10->searchByName("b05", $options);

$response = $icd10->searchByDescription("mumps", $options);

$response = $icd10->searchByNameOrDescription("rubella", $options);
bash
$ php composer.phar update