1. Go to this page and download the library: Download saas4saas/s4s-full-php 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/ */
saas4saas / s4s-full-php example snippets
onfigure API key authorization: tenantid
s4s\Configuration::getDefaultConfiguration()->setApiKey('tenantid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// s4s\Configuration::getDefaultConfiguration()->setApiKeyPrefix('tenantid', 'Bearer');
// Configure API key authorization: token
s4s\Configuration::getDefaultConfiguration()->setApiKey('token', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// s4s\Configuration::getDefaultConfiguration()->setApiKeyPrefix('token', 'Bearer');
$api_instance = new s4s\Api\SsNotificationApi();
$name = "name_example"; // string |
$email = "email_example"; // string |
$phone = "phone_example"; // string |
$message = "message_example"; // string |
try {
$result = $api_instance->notificationContactus($name, $email, $phone, $message);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SsNotificationApi->notificationContactus: ', $e->getMessage(), PHP_EOL;
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.