Request User Data
curl --request POST \
--url https://api.eka.care/privacy/v1/user-data \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.eka.care/privacy/v1/user-data"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.eka.care/privacy/v1/user-data', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.eka.care/privacy/v1/user-data")
.header("Authorization", "Bearer <token>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/privacy/v1/user-data");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/privacy/v1/user-data")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"user_info": {
"username": "test_uid"
}
}User App
Request User Data
This endpoint prepares the user data. After a 202 response from this API, the client will receive the user data via a webhook.
POST
/
privacy
/
v1
/
user-data
Request User Data
curl --request POST \
--url https://api.eka.care/privacy/v1/user-data \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.eka.care/privacy/v1/user-data"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.eka.care/privacy/v1/user-data', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.post("https://api.eka.care/privacy/v1/user-data")
.header("Authorization", "Bearer <token>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/privacy/v1/user-data");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/privacy/v1/user-data")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"user_info": {
"username": "test_uid"
}
}Was this page helpful?

