smsgatewayme / client
Installs: 33 584
Dependents: 3
Suggesters: 0
Security: 0
Stars: 26
Watchers: 14
Forks: 32
Open Issues: 23
Requires
- php: >=5.3.3
- ext-curl: *
- ext-json: *
- ext-mbstring: *
Requires (Dev)
- phpunit/phpunit: ~4.0
- satooshi/php-coveralls: ~0.6.1
- squizlabs/php_codesniffer: ~2.0
This package is not auto-updated.
Last update: 2024-11-01 09:37:07 UTC
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
Documentation For Models
- Callback
- CallbackSearchResult
- CancelMessageRequest
- Contact
- ContactSearchResult
- CreateCallbackRequest
- CreateContactRequest
- Device
- DeviceAttributes
- DeviceSearchResult
- Error
- ErrorResponse
- FatalResponse
- Message
- MessageLog
- MessageSearchResult
- Search
- SearchFilter
- SearchOrderBy
- SendMessageRequest
- UpdateCallbackRequest
- UpdateContactRequest
Documentation For Authorization
Authorization
- Type: API key
- API key parameter name: Authorization
- Location: HTTP header