List Mobile Networks
Get list of mobile networks supported by Terraswitch.
GET {{BASE_URL}}/v1/networksOptional Query Parameters
Property
Data Type
Description
Example
limit
string
Number of records per page
50
page
string
Page number to view
1
order
string
Arrangement of records in descending or ascending order
"asc" or "desc"
import Axios from 'axios';
// set the api url
const API_URL = `${BASE_URL}/v1/networks`;
// make request using axios
Axios({
method: "GET",
url: `${API_URL}`,
headers: {
lg: 'en',
ch: 'web'
Authorization: `Bearer ${API_KEY}`,
'Content-Type': 'application/json',
}
}).then((resp) => {
console.log(resp)
}).catch((err) => {
console.log(err)
}){
"error": false,
"errors": [],
"count": 4,
"total": 4,
"pagination": {},
"data": [
{
"name": "MTN Nigeria",
"description": "MTN Nigeria mobile network",
"label": "mtn",
"logo": "",
"createdAt": "2023-12-28T17:29:53.658Z",
"updatedAt": "2023-12-28T17:29:53.658Z",
"slug": "mtn-nigeria"
},
{
"name": "GLO Nigeria",
"description": "Globacom Nigeria mobile network",
"label": "glo",
"logo": "",
"createdAt": "2023-12-28T17:29:53.658Z",
"updatedAt": "2023-12-28T17:29:53.658Z",
"slug": "glo-nigeria"
},
{
"name": "AIRTEL Nigeria",
"description": "Airtel Nigeria mobile network",
"label": "airtel",
"logo": "",
"createdAt": "2023-12-28T17:29:53.658Z",
"updatedAt": "2023-12-28T17:29:53.658Z",
"slug": "airtel-nigeria"
},
{
"name": "9 Mobile Nigeria",
"description": "9 Mobile Nigeria mobile network",
"label": "9mobile",
"logo": "",
"createdAt": "2023-12-28T17:29:53.658Z",
"updatedAt": "2023-12-28T17:29:53.658Z",
"slug": "9-mobile-nigeria"
}
],
"message": "successfull",
"status": 200
}Last updated