Read Connected Profile Data
curl --request GET \
--url https://api.{tenant}.getomneo.com/api/v3/profiles/{profile}/connections/{connection}/profileInfoimport requests
url = "https://api.{tenant}.getomneo.com/api/v3/profiles/{profile}/connections/{connection}/profileInfo"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.{tenant}.getomneo.com/api/v3/profiles/{profile}/connections/{connection}/profileInfo', 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.{tenant}.getomneo.com/api/v3/profiles/{profile}/connections/{connection}/profileInfo",
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.{tenant}.getomneo.com/api/v3/profiles/{profile}/connections/{connection}/profileInfo"
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.{tenant}.getomneo.com/api/v3/profiles/{profile}/connections/{connection}/profileInfo")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.{tenant}.getomneo.com/api/v3/profiles/{profile}/connections/{connection}/profileInfo")
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"<string>"{
"message": "<string>"
}{
"message": "<string>"
}Profile Connection
Read Connected Profile Data
A GET to the /profiles/{profileId}/connections/{connectionId}/profileInfo endpoint allows your application to retrieve the values matching the shareable_attributes on the connected profile.
GET
/
v3
/
profiles
/
{profile}
/
connections
/
{connection}
/
profileInfo
Read Connected Profile Data
curl --request GET \
--url https://api.{tenant}.getomneo.com/api/v3/profiles/{profile}/connections/{connection}/profileInfoimport requests
url = "https://api.{tenant}.getomneo.com/api/v3/profiles/{profile}/connections/{connection}/profileInfo"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.{tenant}.getomneo.com/api/v3/profiles/{profile}/connections/{connection}/profileInfo', 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.{tenant}.getomneo.com/api/v3/profiles/{profile}/connections/{connection}/profileInfo",
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.{tenant}.getomneo.com/api/v3/profiles/{profile}/connections/{connection}/profileInfo"
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.{tenant}.getomneo.com/api/v3/profiles/{profile}/connections/{connection}/profileInfo")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.{tenant}.getomneo.com/api/v3/profiles/{profile}/connections/{connection}/profileInfo")
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"<string>"{
"message": "<string>"
}{
"message": "<string>"
}Returns the profile attributes a Connection shares with the other party. The Connection Definition’s
Omneo works out the role from the Connection itself, so there is no parameter to set. If the Profile in the path is the Connection’s
An empty array is returned when the Definition has no
shareable_attributes decides which attributes are exposed, and Omneo resolves them against the Profile named in the path.
Which attributes are returned
shareable_attributes is keyed first by the role the Profile plays in the Connection, then by the Connection’s status:
{
"connected": {
"accepted": ["first_name", "attributes.comms.email", "identity.shopify"]
},
"connector": {
"accepted": ["first_name"],
"pending": []
}
}
connected_id, the connected block applies. If it is the connector_id, the connector block applies. See Connections for how the two sides are populated.
Each entry is a dotted path into the Profile. identity.{handle} resolves to that Identity’s identifier, and returns null when the Profile has no Identity with that handle.
Response
The response is a flat object keyed by the configured paths, with nodata wrapper:
{
"first_name": "Alex",
"attributes.comms.email": "alex@example.com",
"identity.shopify": "1234567890"
}
shareable_attributes, or when it has no entry for the Profile’s role at the Connection’s current status. A 404 is returned when the Profile in the path is neither side of the Connection.