Retrieve a list of EVSE's with their current status
curl --request GET \
--url https://api.spirii.com/evsesimport requests
url = "https://api.spirii.com/evses"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.spirii.com/evses', 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.spirii.com/evses",
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://api.spirii.com/evses"
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://api.spirii.com/evses")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spirii.com/evses")
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{
"data": [
{
"id": "DK.SPI.Z203*2",
"MaxPower": 22,
"PowerType": "AC_3_PHASE",
"Plug Type": "2 cable",
"location": {
"id": 1209,
"name": "Gentofte Hospital"
},
"status": "Available",
"info": "M3[63/0]S[0:]",
"transaction": {
"id": 239316,
"duration": 33003356,
"power": 0,
"stateOfCharge": null
}
},
{
"id": "DK.SPI.Z203*1",
"MaxPower": 22,
"PowerType": "AC_3_PHASE",
"Plug Type": "2 cable",
"location": {
"id": 1209,
"name": "Gentofte Hospital"
},
"status": "SuspendedEV",
"info": "M3[63/0]S[0:]",
"transaction": {
"id": 239316,
"duration": 33003356,
"power": 0,
"stateOfCharge": null
}
},
{
"id": "DK.SPI.Z134*1",
"MaxPower": 22,
"PowerType": "AC_3_PHASE",
"Plug Type": "2 cable",
"location": {
"id": 1175,
"name": "EWII (Public parking)"
},
"status": "Offline",
"transaction": {
"id": 260117,
"duration": 31814196,
"power": 0,
"stateOfCharge": null
}
}
]
}{
"error": {
"message": "Querystring parameter `id` is not allowed",
"statusCode": 400,
"code": "QueryParamNotAllowed"
}
}{
"error": {
"message": "Something went wroing, try again later",
"statusCode": 500
}
}Retrieve a list of EVSE's with their current status
GET
/
evses
Retrieve a list of EVSE's with their current status
curl --request GET \
--url https://api.spirii.com/evsesimport requests
url = "https://api.spirii.com/evses"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.spirii.com/evses', 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.spirii.com/evses",
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://api.spirii.com/evses"
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://api.spirii.com/evses")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spirii.com/evses")
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{
"data": [
{
"id": "DK.SPI.Z203*2",
"MaxPower": 22,
"PowerType": "AC_3_PHASE",
"Plug Type": "2 cable",
"location": {
"id": 1209,
"name": "Gentofte Hospital"
},
"status": "Available",
"info": "M3[63/0]S[0:]",
"transaction": {
"id": 239316,
"duration": 33003356,
"power": 0,
"stateOfCharge": null
}
},
{
"id": "DK.SPI.Z203*1",
"MaxPower": 22,
"PowerType": "AC_3_PHASE",
"Plug Type": "2 cable",
"location": {
"id": 1209,
"name": "Gentofte Hospital"
},
"status": "SuspendedEV",
"info": "M3[63/0]S[0:]",
"transaction": {
"id": 239316,
"duration": 33003356,
"power": 0,
"stateOfCharge": null
}
},
{
"id": "DK.SPI.Z134*1",
"MaxPower": 22,
"PowerType": "AC_3_PHASE",
"Plug Type": "2 cable",
"location": {
"id": 1175,
"name": "EWII (Public parking)"
},
"status": "Offline",
"transaction": {
"id": 260117,
"duration": 31814196,
"power": 0,
"stateOfCharge": null
}
}
]
}{
"error": {
"message": "Querystring parameter `id` is not allowed",
"statusCode": 400,
"code": "QueryParamNotAllowed"
}
}{
"error": {
"message": "Something went wroing, try again later",
"statusCode": 500
}
}Was this page helpful?