saas4saas / s4s-full-php
v2.1.9
2016-12-20 17:54 UTC
Requires
- php: >=5.4
- ext-curl: *
- ext-json: *
- ext-mbstring: *
Requires (Dev)
- phpunit/phpunit: ~4.8
- satooshi/php-coveralls: ~1.0
- squizlabs/php_codesniffer: ~2.6
This package is not auto-updated.
Last update: 2024-09-23 13:42:04 UTC
README
未提供描述(由Swagger Codegen生成 https://github.com/swagger-api/swagger-codegen)
此PHP包是由Swagger Codegen项目自动生成的
- API版本
- 包版本:v2.1.5
- 构建日期:2016-12-20T17:05:52.488Z
- 构建包:class io.swagger.codegen.languages.PhpClientCodegen 了解更多信息,请访问
要求
PHP 5.4.0 及以上版本
安装与使用
Composer
要通过Composer安装绑定,请在composer.json
中添加以下内容
{
"repositories": [
{
"type": "git",
"url": "https://github.com/saas4saas/s4s-full-php.git"
}
],
"require": {
"saas4saas/s4s-full-php": "*@dev"
}
}
然后运行composer install
手动安装
下载文件并包含autoload.php
require_once('/path/to//autoload.php');
测试
要运行单元测试
composer install
./vendor/bin/phpunit lib/Tests
入门
请按照安装流程进行操作,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure 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; } ?>
API端点文档
所有URI都是相对于https://
模型文档
- 账户
- 客户账单
- 客户信息
- 客户支付
- 客户计划
- 账户数据列表
- 客户账单数据列表
- 客户计划数据列表
- 支付请求数据列表
- 用户API数据列表
- 电子邮件
- 电子邮件恢复
- 谷歌身份验证
- 谷歌令牌ID
- 登录
- 一次性支付
- 操作员配置
- 支付请求
- 计划
- 价格
- 资源补丁
- 资源补丁结果
- S4sError
- 会话
- Stripe客户
- 订阅
- 用户
- 用户API
- 用户配置
- 用户联系
- UtUser
授权文档
tenantid
- 类型:API密钥
- API密钥参数名:tenantid
- 位置:URL查询字符串
token
- 类型:API密钥
- API密钥参数名:token
- 位置:URL查询字符串