Get Groups
curl --request GET \
--url https://external-api.mileiq.com/v1/groupsimport requests
url = "https://external-api.mileiq.com/v1/groups"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://external-api.mileiq.com/v1/groups', 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://external-api.mileiq.com/v1/groups",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://external-api.mileiq.com/v1/groups"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://external-api.mileiq.com/v1/groups")
.asString();require 'uri'
require 'net/http'
url = URI("https://external-api.mileiq.com/v1/groups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"resources": [
{
"id": "<string>",
"display_name": "<string>",
"members": [
{
"value": "<string>",
"display": "<string>",
"is_admin": true,
"is_driver": true
}
],
"meta": {
"resourceType": "<string>",
"created": "2023-11-07T05:31:56Z",
"lastModified": "2023-11-07T05:31:56Z",
"location": "<string>"
}
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}groups
Get Groups
Retrieve all groups (teams) that the authenticated user has administrative access to. Only returns groups where the user is designated as an administrator.
GET
/
v1
/
groups
Get Groups
curl --request GET \
--url https://external-api.mileiq.com/v1/groupsimport requests
url = "https://external-api.mileiq.com/v1/groups"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://external-api.mileiq.com/v1/groups', 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://external-api.mileiq.com/v1/groups",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://external-api.mileiq.com/v1/groups"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://external-api.mileiq.com/v1/groups")
.asString();require 'uri'
require 'net/http'
url = URI("https://external-api.mileiq.com/v1/groups")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"resources": [
{
"id": "<string>",
"display_name": "<string>",
"members": [
{
"value": "<string>",
"display": "<string>",
"is_admin": true,
"is_driver": true
}
],
"meta": {
"resourceType": "<string>",
"created": "2023-11-07T05:31:56Z",
"lastModified": "2023-11-07T05:31:56Z",
"location": "<string>"
}
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Headers
Response
Successfully retrieved list of accessible groups. Returns an array of group objects with their details including members, metadata, and display information.
Response model containing a collection of groups with their complete information and member details
Array of group objects containing detailed information about each accessible group, including members, roles, and metadata
Show child attributes
Show child attributes
⌘I