| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
https://fonoapi.freshpixl.com/
this is an Api which can provide mobile device descriptions such as model, brand, cpu, gpu, dimensions, release date etc...
this is the php class to communicate with the api. it would be nice if someone can help with other languages though. ;)
Api Url : https://fonoapi.freshpixl.com/v1/
available options
<?php
include_once("fonoapi-v1.php");
$apiKey = "xxxxxxxx"; // get your token key here - https://fonoapi.freshpixl.com
$fonoapi = fonoApi::init($apiKey);
try {
$res = $fonoapi::getDevice("i9305"); // the device you need to get details here
foreach ($res as $mobile) {
if (!empty($mobile->DeviceName)) echo "Device : ". $mobile->DeviceName . "<br>";
if (!empty($mobile->Brand)) echo "Brand : ". $mobile->Brand . "<br>";
if (!empty($mobile->cpu)) echo "Cpu : " . $mobile->cpu . "<br>";
if (!empty($mobile->status)) echo "Status : " . $mobile->status . "<br>";
if (!empty($mobile->dimensions)) echo "Dimensions : " . $mobile->dimensions . "<br>";
if (!empty($mobile->_4g_bands)) echo "4g : " .$mobile->_4g_bands . "<br>";
}
} catch (Exception $e) {
echo "ERROR : " . $e->getMessage();
}
?>
from fonAPI import FonApi
fon = FonApi('yourkey')
device = 'nokia 3210'
phones = fon.getdevice(device)
try:
for phone in phones:
print phone['DeviceName']
print phone['weight']
print phone['resolution']
except:
print phones
Note : Use a "_" before key if the key is starting with a number (example : _2g_bands, _4g_bands)
| Back | FazBrowse Home | New Git URL |