saas4saas/s4s-full-php

v2.1.9 2016-12-20 17:54 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://

模型文档

授权文档

tenantid

  • 类型:API密钥
  • API密钥参数名:tenantid
  • 位置:URL查询字符串

token

  • 类型:API密钥
  • API密钥参数名:token
  • 位置:URL查询字符串

作者