List EMP identities
curl --request GET \
--url https://api.spirii.com/emsp/v1/tenant/emp-identitiesimport requests
url = "https://api.spirii.com/emsp/v1/tenant/emp-identities"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.spirii.com/emsp/v1/tenant/emp-identities', 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/emsp/v1/tenant/emp-identities",
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/emsp/v1/tenant/emp-identities"
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/emsp/v1/tenant/emp-identities")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spirii.com/emsp/v1/tenant/emp-identities")
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": [
{
"emp_identity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"country_code": "DK",
"party_id": "SPR",
"status": "ACTIVE",
"created_at": "2023-11-07T05:31:56Z",
"protocol": [
"OCPI"
],
"label": "<string>",
"contact_email": "jsmith@example.com",
"contact_phone": "<string>",
"default_network_access": true
}
],
"pagination": {
"end_cursor": "<string>",
"has_next": true
}
}List EMP identities
Lists all of the roaming identities registered to your organization. Every organization has at least one (set up by Spirii), and you can register more — for example to keep different brands or regions separate.
GET
/
emsp
/
v1
/
tenant
/
emp-identities
List EMP identities
curl --request GET \
--url https://api.spirii.com/emsp/v1/tenant/emp-identitiesimport requests
url = "https://api.spirii.com/emsp/v1/tenant/emp-identities"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.spirii.com/emsp/v1/tenant/emp-identities', 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/emsp/v1/tenant/emp-identities",
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/emsp/v1/tenant/emp-identities"
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/emsp/v1/tenant/emp-identities")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.spirii.com/emsp/v1/tenant/emp-identities")
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": [
{
"emp_identity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"country_code": "DK",
"party_id": "SPR",
"status": "ACTIVE",
"created_at": "2023-11-07T05:31:56Z",
"protocol": [
"OCPI"
],
"label": "<string>",
"contact_email": "jsmith@example.com",
"contact_phone": "<string>",
"default_network_access": true
}
],
"pagination": {
"end_cursor": "<string>",
"has_next": true
}
}Was this page helpful?