Skip to content

ImeiDB/SDK

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 

ImeiDB SDK

IMEIDB - big database that allows you to decrypt IMEI mobile devices and receive information about them.

Capability

  • Retrieve information about current state of balance
  • Decode IMEI and retrieve information about it

Installation

Install basic component using composer

composer require imeidb/sdk

Examples

{YOUR_SECRET_TOKEN} - Your personal code for accessing the API, which can be found in your personal account. (Here: https://imeidb.xyz/user)

use imeidb\sdk\ImeiDBClient;

# Init 
$client = new ImeiDBClient('{YOUR_SECRET_TOKEN}');

# Get information about the current state of the account
$response = $client->getBalance();

# Decode the imei number
$response = $client->getDecode('352877111096108');

# Process results
if ($response->getStatusCode() === 200) {
    $data = json_decode($response->getBody()->getContents());
}

Basically information will be returned in JSON format. We support both JSON and XML:

use imeidb\sdk\ImeiDBClient;

# Using initialize method
$client = new ImeiDBClient('{YOUR_SECRET_TOKEN}', ImeiDBClient::FORMAT_XML);

# or using dynamically change format
$client->setFormat(ImeiDBClient::FORMAT_XML);

About

Simple and lightweight SDK for working with ImeiDB API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages