1.1.62
2024-05-10 16:09 UTC
Requires
- php: ^8.0
- guzzlehttp/guzzle: ^7.0
- phpdocumentor/reflection-docblock: ^5.4
- symfony/property-access: ^7.0
- symfony/property-info: ^7.0
- symfony/serializer: ^7.0
Requires (Dev)
- laravel/pint: ^1.13.7
- nyholm/psr7: ^1.8
- php-http/mock-client: ^1.6
- phpstan/phpstan: ^1.8
- phpunit/phpunit: ^9
This package is auto-updated.
Last update: 2024-05-17 14:04:09 UTC
README
Version: 1.1.0 Welcome to the CELITECH API documentation!
Useful links: Homepage | Support email | Blog
Install
composer install celitech-php-test/sdk
Example
<?php use Celitech\Client; $sdk = new Client(); $response = $sdk->Destinations->listDestinations(); print_r($response);
Services
Destinations
listDestinations
List Destinations
<?php use Celitech\Client; $sdk = new Client(); $response = $sdk->Destinations->listDestinations(); print_r($response);
Packages
listPackages
List Packages
<?php use Celitech\Client; $sdk = new Client(); $response = $sdk->Packages->listPackages(); print_r($response);
Purchases
listPurchases
List Purchases
<?php use Celitech\Client; $sdk = new Client(); $response = $sdk->Purchases->listPurchases(); print_r($response);
createPurchase
Create Purchase
<?php use Celitech\Client; use Celitech\Models\CreatePurchaseRequest; $sdk = new Client(); $input = new CreatePurchaseRequest( destination: "destination", dataLimitInGb: 123, startDate: "startDate", endDate: "endDate", email: "email", networkBrand: "networkBrand", startTime: 123, endTime: 123 ); $response = $sdk->Purchases->createPurchase( input: $input ); print_r($response);
topUpEsim
Top-up eSIM
<?php use Celitech\Client; use Celitech\Models\TopUpEsimRequest; $sdk = new Client(); $input = new TopUpEsimRequest( iccid: "iccid", dataLimitInGb: 123, startDate: "startDate", endDate: "endDate", email: "email", startTime: 123, endTime: 123 ); $response = $sdk->Purchases->topUpEsim( input: $input ); print_r($response);
editPurchase
Edit Purchase
<?php use Celitech\Client; use Celitech\Models\EditPurchaseRequest; $sdk = new Client(); $input = new EditPurchaseRequest( purchaseId: "purchaseId", startDate: "startDate", endDate: "endDate", startTime: 123, endTime: 123 ); $response = $sdk->Purchases->editPurchase( input: $input ); print_r($response);
getPurchaseConsumption
Get Purchase Consumption
<?php use Celitech\Client; $sdk = new Client(); $response = $sdk->Purchases->getPurchaseConsumption( purchaseId: "purchaseId" ); print_r($response);
ESim
getEsim
Get eSIM Status
<?php use Celitech\Client; $sdk = new Client(); $response = $sdk->ESim->getEsim( iccid: "iccid" ); print_r($response);
getEsimDevice
Get eSIM Device
<?php use Celitech\Client; $sdk = new Client(); $response = $sdk->ESim->getEsimDevice( iccid: "iccid" ); print_r($response);
getEsimHistory
Get eSIM History
<?php use Celitech\Client; $sdk = new Client(); $response = $sdk->ESim->getEsimHistory( iccid: "iccid" ); print_r($response);
getEsimMac
Get eSIM MAC
<?php use Celitech\Client; $sdk = new Client(); $response = $sdk->ESim->getEsimMac( iccid: "iccid" ); print_r($response);