smsgatewayme/client 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

smsgatewayme/client

最新稳定版本:v0.0.1

Composer 安装命令:

composer require smsgatewayme/client

包简介

无描述信息

README 文档

README

This PHP package is automatically generated by the Swagger Codegen project:

  • API version: 4.0.0
  • Package version: v0.0.1
  • Build date: 2018-05-16T00:56:54.871+01:00
  • Build package: class io.swagger.codegen.languages.PhpClientCodegen

Requirements

PHP 5.4.0 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/smsgatewayme/client-php.git"
    }
  ],
  "require": {
    "smsgatewayme/client": "^0.0.1"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

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

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit lib/Tests

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Authorization
SMSGatewayMe\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. BEARER) for API key, if needed
// SMSGatewayMe\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'BEARER');

$api_instance = new SMSGatewayMe\Client\Api\CallbackApi();
$callback = new \SMSGatewayMe\Client\Model\CreateCallbackRequest(); // \SMSGatewayMe\Client\Model\CreateCallbackRequest | callback to create

try {
    $result = $api_instance->createCallback($callback);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CallbackApi->createCallback: ', $e->getMessage(), "\n";
}

?>

Documentation for API Endpoints

All URIs are relative to https://smsgateway.me/api/v4

Class Method HTTP request Description
CallbackApi createCallback POST /callback Create Callback
CallbackApi getCallback GET /callback/{id} Get a specific callback
CallbackApi searchCallbacks POST /callback/search Search callbacks
CallbackApi updateCallback PUT /callback/{id} Update callback
ContactApi addPhoneNumber PUT /contact/{id}/phone-number/{phone-number} The phone number to add
ContactApi createContacts POST /contact Create Contacts
ContactApi deletePhoneNumber DELETE /contact/{id}/phone-number/{phone-number} The phone number to delete
ContactApi getContact GET /contact/{id} Get a specific contact
ContactApi searchContacts POST /contact/search Search contacts
ContactApi updateContact PUT /contact/{id} Update contact
DeviceApi getDevice GET /device/{id} Get a specific device
DeviceApi searchDevices POST /device/search Search devices
MessageApi cancelMessages POST /message/cancel Cancel messages
MessageApi getMessage GET /message/{id} Get a specific message
MessageApi searchMessages POST /message/search Search messages
MessageApi sendMessages POST /message/send Send messages

Documentation For Models

Documentation For Authorization

Authorization

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Author

统计信息

  • 总下载量: 45.5k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 26
  • 点击次数: 1
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

  • Stars: 26
  • Watchers: 13
  • Forks: 30
  • 开发语言: PHP

其他信息

  • 授权协议: Apache
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固