Skip to main content
GET
/
public
/
user
/
mobile
/
summary
Retrieve Mobile Service Summary
curl --request GET \
  --url https://api.byteful.com/1.0/public/user/mobile/summary \
  --header 'X-API-Private-Key: <api-key>' \
  --header 'X-API-Public-Key: <api-key>'
import requests

url = "https://api.byteful.com/1.0/public/user/mobile/summary"

headers = {
    "X-API-Private-Key": "<api-key>",
    "X-API-Public-Key": "<api-key>"
}

response = requests.get(url, headers=headers)

print(response.text)
const options = {
  method: 'GET',
  headers: {'X-API-Private-Key': '<api-key>', 'X-API-Public-Key': '<api-key>'}
};

fetch('https://api.byteful.com/1.0/public/user/mobile/summary', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.byteful.com/1.0/public/user/mobile/summary",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "X-API-Private-Key: <api-key>",
    "X-API-Public-Key: <api-key>"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.byteful.com/1.0/public/user/mobile/summary"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("X-API-Private-Key", "<api-key>")
	req.Header.Add("X-API-Public-Key", "<api-key>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.byteful.com/1.0/public/user/mobile/summary")
  .header("X-API-Private-Key", "<api-key>")
  .header("X-API-Public-Key", "<api-key>")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.byteful.com/1.0/public/user/mobile/summary")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-API-Private-Key"] = '<api-key>'
request["X-API-Public-Key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "data": {
    "mobile_bytes": 10024144,
    "mobile_bytes_left": 7003114,
    "mobile_bytes_used": 3021030,
    "mobile_requests": 5012,
    "proxy_user_ids": [
      "stevejobs"
    ]
  },
  "message": "Mobile summary successfully generated."
}

Authorizations

X-API-Private-Key
string
header
required

Private API key for user-level authentication.

X-API-Public-Key
string
header
required

Public API key for user-level authentication.

Response

200 - application/json

Successful retrieval of mobile service summary.

data
object
message
string
Example:

"Mobile summary successfully generated."