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> -->
Requires
- php: ^7.4 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
This package is auto-updated.
Last update: 2024-11-09 08:56:55 UTC
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
Models
- CreatePatternResponse
- CreatePatternResponseAllOfData
- CreditResponse
- CreditResponseAllOfData
- ErrorResponse
- GenericResponse
- InboxMessage
- InboxResponse
- InboxResponseAllOfData
- Message
- MessageResponse
- MessageResponseAllOfData
- MessageToSend
- Meta
- Pattern
- PatternToCreate
- PatternToSend
- Recipient
- RecipientResponse
- RecipientResponseAllOfData
- SmsResponse
- SmsResponseAllOfData
- User
- UserResponse
- UserResponseAllOfData
- UserResponseData
- UserResponseDataData
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
- Package version: