Bmooij / 1nce

OnenceWS Http client for official 1nce rest api https://api.1nce.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OnenceWS

OnenceWS Http client for official 1nce rest api https://api.1nce.com

Installation

composer require bmooij/onence:dev-master

Usage

use pipinstallpip\onencews\OnenceWS;

$clientId = 'yourclientid';
$clientSecret = 'yoursecretkey';

$api = new OnenceWS($clientId,$clientSecret);
$response = $api->getSimsList(); //return all sims
print_r($response);

Class methods

  • getSimsList
  • getSimReachibility
  • getSimUsage
  • getSimRemainingData
  • getSimRemainingSms
  • getSmsList
  • getSimInfo
  • getSimStatus
  • getSimEvents
  • getSmsDetails
  • sendSms
  • resetSim
  • changeSimState
  • deleteSpecificSms

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

OnenceWS Http client for official 1nce rest api https://api.1nce.com

License:MIT License


Languages

Language:PHP 100.0%