Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/hydrogen-dev/web-component-sdk-php
- Owner: hydrogen-dev
- Created: 2021-06-18T13:47:32.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-19T04:36:35.000Z (almost 3 years ago)
- Last Synced: 2024-04-16T23:45:12.831Z (8 months ago)
- Language: PHP
- Size: 77.1 KB
- Stars: 0
- Watchers: 0
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
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 Corporationhttps://www.hydrogenplatform.com
*Generated using [Swagger Codegen](https://github.com/swagger-api/swagger-codegen)*