mhd-jalilvand/mediana-php 问题修复 & 功能扩展

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

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

mhd-jalilvand/mediana-php

最新稳定版本:1.0.4

Composer 安装命令:

composer require mhd-jalilvand/mediana-php

包简介

Mediana sms api doc </br> sdks for some programming languages is in out github at https://github.com/ippanelippanel </br> api-key format: <code>Authorization: "AccessKey your-api-key"</code> # Authentication <!-- ReDoc-Inject: <security-definitions> -->

README 文档

README

Mediana sms api doc
sdks for some programming languages is in out github at https://github.com/ippanelippanel
api-key format: Authorization: "AccessKey your-api-key"

Authentication

Installation & Usage

Requirements

PHP 7.4 and later. Should also work with PHP 8.0.

Composer

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

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/mhd-jalilvand/Mediana-php.git"
    }
  ],
  "require": {
    "mhd-jalilvand/Mediana-php": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

<?php
require_once('/path/to/Mediana-php/vendor/autoload.php');

Getting Started

Please follow the installation procedure and then run the following:

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



// Configure API key authorization: ApiKeyAuth
$config = Mediana\Sdk\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Mediana\Sdk\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');


$apiInstance = new Mediana\Sdk\Api\MedianaApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$pattern_to_create = new \Mediana\Sdk\Model\PatternToCreate(); // \Mediana\Sdk\Model\PatternToCreate | parameters

try {
    $result = $apiInstance->createPattern($pattern_to_create);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MedianaApi->createPattern: ', $e->getMessage(), PHP_EOL;
}

API Endpoints

All URIs are relative to http://rest.ippanel.com

Class Method HTTP request Description
MedianaApi createPattern POST /v1/messages/patterns
MedianaApi fetchInboxMessages GET /v1/messages/inbox
MedianaApi getAuthorizedUser GET /v1/user
MedianaApi getCredit GET /v1/credit
MedianaApi getMessageRecipientsStatus GET /v1/messages/{bulk_id}/recipients
MedianaApi getSMS GET /v1/messages/{bulk_id}
MedianaApi sendPattern POST /v1/messages/patterns/send
MedianaApi sendSMS POST /v1/messages

Models

Authorization

Authentication schemes defined for the API:

ApiKeyAuth

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

Tests

To run the tests, use:

composer install
vendor/bin/phpunit

Author

About this package

This PHP package is automatically generated by the Mediana Team project:

  • API version: 1.0.1
    • Package version: 1.0.4

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: unlicense
  • 更新时间: 2023-10-08