Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hydrogen-dev/web-component-sdk-php


https://github.com/hydrogen-dev/web-component-sdk-php

Last synced: 18 days ago
JSON representation

Awesome Lists containing this project

README

        

# Hydrogen Web Components

For more information, please visit [https://www.hydrogenplatform.com/no-code](https://www.hydrogenplatform.com/no-code)

## Requirements
PHP 5.5 and later

## Installation

### Manual Installation

Download the files and include `autoload.php`:

```php
require_once('/path/to/SwaggerClient-php/vendor/autoload.php');
```

## Tests

To run the unit tests:

```
composer install
./vendor/bin/phpunit
```

## Getting Started

Please first follow the [installation](#installation) instructions. Then make sure you use the proper base URL:

### Base URL
Follow steps to verify the base URL path:

1. Go to Configuration file located under lib folder.
2. Search for $host and change/verify the URL according to the environment.

**Sandbox Base URL**
https://sandbox.hydrogenplatform.com

**Production Base URL**
https://api.hydrogenplatform.com

### Sample Code
Now you are ready to execute the following PHP code:

```php
"public-key",
"value" => "****"
),
array(
"name" => "client-id",
"value" => "****"
),
array(
"name" => "card-id",
"value" => "****"
)
);

$appTokenConfig['appName'] = array(array('app_name'=>'pfm_cash_flow', 'auth_type'=>'password_credentials'))
$appTokenConfig['basePath'] = \com\hydrogen\admin\Environment::PRODUCTION;
$appTokenConfig['userAccessToken'] = '';
$appTokenConfig['attribMap'] = $attribMap;
$appTokenConfig['isEmbed'] = true;
$appTokenConfig['isCredsPassed'] = true;
$appTokenConfig['clientId'] = '****';
$appTokenConfig['clientSecret'] = '****';
$appTokenConfig['username'] = "****";
$appTokenConfig['password'] = "****";
$appTokenConfig['auth_type'] = 'client_credentials';

try {
$result = $apiInstance->getAppTokenUsingGET($appTokenConfig);
print_r($result);
} catch (Exception $e) {
print_r($e->getMessage());
}

?>
```

## Author
The Hydrogen Technology Corporation

https://www.hydrogenplatform.com

*Generated using [Swagger Codegen](https://github.com/swagger-api/swagger-codegen)*