Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
test-celitech-liblab
Advanced tools
Celitech - Welcome to the CELITECH API documentation! Useful links: [Homepage](https://www.celitech.com) | [Support email](mailto:support@celitech.com) | [Blog](https://www.celitech.com/blog/) # Introduction This guide is your go-to resource for the CE
The Typescript SDK for Celitech.
Welcome to the CELITECH API documentation! Useful links: Homepage | Support email | Blog # Introduction This guide is your go-to resource for the CELITECH API, with full documentation and schemas. Need help? Email us at support@celitech.com. Partners refers to online service providers that use our eSIM API. Access levels include Gold, Platinum, and Diamond. ## API The CELITECH API is designed for use by partner platforms, including both web and mobile applications. It's assumed all endpoint calls are initiated from the backend of an integrated platform. API URL: https://api.celitech.net/v1
## Authentication & Authorization CELITECH API uses the OAuth 2.0 protocol for authentication and authorization. The endpoints are protected using client credentials flow which is based on a token exchange. The token has a defined life span (typically 1 hour), after which a new token must be obtained. To begin, obtain OAuth 2.0 client credentials ( CLIENT_ID & CLIENT_SECRET ) from the CELITECH Dashboard. Then your client application requests an access token from the CELITECH Authorization Server, extracts a token from the response, and sends the token to the CELITECH API that you want to access. Security Scheme Type: OAuth2
Flow type: clientCredentials
Token URL: https://auth.celitech.net/oauth2/token
npm install test-celitech-liblab
You will need the following environment variables in order to access all the features of this SDK:
Name | Description |
---|---|
CLIENT_ID | Client ID parameter |
CLIENT_SECRET | Client Secret parameter |
You can set these environment variables on the command line or you can use
whatever tooling your project has in place to manage environment variables. If
you are using a .env
file, we have provided a template with the variable names
in the .env.example
file in the same directory as this readme.
Here is a simple program demonstrating usage of this SDK. It can also be found in the examples/src/index.ts
file in this directory.
When running the sample make sure to use npm install
to install all the dependencies.
import { Celitech } from 'test-celitech-liblab';
const sdk = new Celitech();
(async () => {
const result = await sdk.destinations
.listDestinations();
console.log(result);
})();
A list of all services and services methods.
Services
Method | Description |
---|---|
listDestinations | List Destinations |
Method | Description |
---|---|
listPackages | List Packages |
Method | Description |
---|---|
createPurchase | Create Purchase |
listPurchases | List Purchases |
topUpEsim | Top-up eSIM |
editPurchase | Edit Purchase |
getPurchaseConsumption | Get Purchase Consumption |
Method | Description |
---|---|
getEsim | Get eSIM Status |
getEsimDevice | Get eSIM Device |
getEsimHistory | Get eSIM History |
getEsimMac | Get eSIM MAC |
List Destinations
Return Type
ListDestinationsResponse
Example Usage Code Snippet
import { Celitech } from 'test-celitech-liblab';
const sdk = new Celitech();
(async () => {
const result = await sdk.destinations.listDestinations();
console.log(result);
})();
List Packages
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|---|---|
destination | string | |
startDate | string | |
endDate | string | |
afterCursor | string | |
limit | number | |
startTime | number | |
endTime | number | |
duration | number |
Return Type
ListPackagesResponse
Example Usage Code Snippet
import { Celitech } from 'test-celitech-liblab';
const sdk = new Celitech();
(async () => {
const result = await sdk.packages.listPackages({
destination: 'FRA',
startDate: '2023-11-01',
endDate: '2023-11-20',
afterCursor:
'Y3JlYXRlZEF0OjE1OTk0OTMwOTgsZGVzdGluYXRpb246QVVTLG1pbkRheXM6MCxkYXRhTGltaXRJbkJ5dGVzOjUzNjg3MDkxMjA',
limit: 20,
startTime: 83602190,
endTime: 77026746,
duration: -2537716.426501915,
});
console.log(result);
})();
Create Purchase
Required Parameters
| input | object | Request body. |
Return Type
CreatePurchaseResponse
Example Usage Code Snippet
import { Celitech } from 'test-celitech-liblab';
const sdk = new Celitech();
(async () => {
const input = {
dataLimitInGB: 1,
destination: 'FRA',
email: 'example@domain.com',
endDate: '2023-11-20',
endTime: 74033706.81067756,
networkBrand: 'CELITECH',
startDate: '2023-11-01',
startTime: 96928283.28731489,
};
const result = await sdk.purchases.createPurchase(input);
console.log(result);
})();
List Purchases
Optional Parameters
Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}
Name | Type | Description |
---|---|---|
iccid | string | |
afterDate | string | Start date of the interval for filtering purchases in the format 'yyyy-MM-dd' |
beforeDate | string | End date of the interval for filtering purchases in the format 'yyyy-MM-dd' |
afterCursor | string | |
limit | number | |
after | number | Epoch value representing the start of the time interval for filtering purchases |
before | number | Epoch value representing the end of the time interval for filtering purchases |
Return Type
ListPurchasesResponse
Example Usage Code Snippet
import { Celitech } from 'test-celitech-liblab';
const sdk = new Celitech();
(async () => {
const result = await sdk.purchases.listPurchases({
iccid: '1111222233334444555',
afterDate: '2023-11-01',
beforeDate: '2023-11-20',
afterCursor:
'Y3JlYXRlZEF0OjE1OTk0OTMwOTgsZGVzdGluYXRpb246QVVTLG1pbkRheXM6MCxkYXRhTGltaXRJbkJ5dGVzOjUzNjg3MDkxMjA',
limit: 20,
after: 63893039.48393628,
before: 34173012.40462902,
});
console.log(result);
})();
Top-up eSIM
Required Parameters
| input | object | Request body. |
Return Type
TopUpEsimResponse
Example Usage Code Snippet
import { Celitech } from 'test-celitech-liblab';
const sdk = new Celitech();
(async () => {
const input = {
dataLimitInGB: 1,
email: 'example@domain.com',
endDate: '2023-11-20',
endTime: 11752626.306001663,
iccid: '1111222233334444555',
startDate: '2023-11-01',
startTime: -42810436.71292881,
};
const result = await sdk.purchases.topUpEsim(input);
console.log(result);
})();
Edit Purchase
Required Parameters
| input | object | Request body. |
Return Type
EditPurchaseResponse
Example Usage Code Snippet
import { Celitech } from 'test-celitech-liblab';
const sdk = new Celitech();
(async () => {
const input = {
endDate: '2023-11-20',
endTime: -89615142.0843645,
purchaseId: 'ae471106-c8b4-42cf-b83a-b061291f2922',
startDate: '2023-11-01',
startTime: -53026592.68954444,
};
const result = await sdk.purchases.editPurchase(input);
console.log(result);
})();
Get Purchase Consumption
Required Parameters
Name | Type | Description |
---|---|---|
purchaseId | string |
Return Type
GetPurchaseConsumptionResponse
Example Usage Code Snippet
import { Celitech } from 'test-celitech-liblab';
const sdk = new Celitech();
(async () => {
const result = await sdk.purchases.getPurchaseConsumption('4973fa15-6979-4daa-9cf3-672620df819c');
console.log(result);
})();
Get eSIM Status
Required Parameters
Name | Type | Description |
---|---|---|
iccid | string |
Return Type
GetEsimResponse
Example Usage Code Snippet
import { Celitech } from 'test-celitech-liblab';
const sdk = new Celitech();
(async () => {
const result = await sdk.eSim.getEsim('1111222233334444555');
console.log(result);
})();
Get eSIM Device
Required Parameters
Name | Type | Description |
---|---|---|
iccid | string |
Return Type
GetEsimDeviceResponse
Example Usage Code Snippet
import { Celitech } from 'test-celitech-liblab';
const sdk = new Celitech();
(async () => {
const result = await sdk.eSim.getEsimDevice('1111222233334444555');
console.log(result);
})();
Get eSIM History
Required Parameters
Name | Type | Description |
---|---|---|
iccid | string |
Return Type
GetEsimHistoryResponse
Example Usage Code Snippet
import { Celitech } from 'test-celitech-liblab';
const sdk = new Celitech();
(async () => {
const result = await sdk.eSim.getEsimHistory('1111222233334444555');
console.log(result);
})();
Get eSIM MAC
Required Parameters
Name | Type | Description |
---|---|---|
iccid | string |
Return Type
GetEsimMacResponse
Example Usage Code Snippet
import { Celitech } from 'test-celitech-liblab';
const sdk = new Celitech();
(async () => {
const result = await sdk.eSim.getEsimMac('1111222233334444555');
console.log(result);
})();
License: MIT. See license in LICENSE.
FAQs
Celitech - Welcome to the CELITECH API documentation! Useful links: [Homepage](https://www.celitech.com) | [Support email](mailto:support@celitech.com) | [Blog](https://www.celitech.com/blog/) # Introduction This guide is your go-to resource for the CE
The npm package test-celitech-liblab receives a total of 0 weekly downloads. As such, test-celitech-liblab popularity was classified as not popular.
We found that test-celitech-liblab demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.