Retrieve an end-user
curl --request GET \
--url https://api.sleekplan.com/v1/user/{userid} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sleekplan.com/v1/user/{userid}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sleekplan.com/v1/user/{userid}', 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.sleekplan.com/v1/user/{userid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.sleekplan.com/v1/user/{userid}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.sleekplan.com/v1/user/{userid}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sleekplan.com/v1/user/{userid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "<string>",
"data": {
"user_id": 123,
"data_id": "<string>",
"admin_id": 123,
"anonymous": true,
"data_name": "<string>",
"data_full_name": "<string>",
"data_mail": "<string>",
"data_img": "<string>",
"segments": [
"<string>"
],
"data": {},
"data_system": {
"ip": "<string>",
"lat": "<string>",
"lng": "<string>",
"city": "<string>",
"browser": "<string>",
"country": "<string>",
"platform": "<string>",
"timezone": "<string>",
"continent": "<string>",
"user_agent": "<string>",
"currency_code": "<string>",
"browser_version": "<string>",
"currency_symbol": "<string>"
},
"stats_feedback": 123,
"stats_votes": 123,
"stats_comments": 123,
"stats_satisfaction": 123,
"stats_promoter": 123,
"notify": 123,
"notify_settings": {
"mention": true,
"changelog": true,
"subscribed": true
},
"weight": 123,
"created": "<string>",
"updated": "<string>"
}
}User
Retrieve an end-user
GET
/
user
/
{userid}
Retrieve an end-user
curl --request GET \
--url https://api.sleekplan.com/v1/user/{userid} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sleekplan.com/v1/user/{userid}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sleekplan.com/v1/user/{userid}', 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.sleekplan.com/v1/user/{userid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.sleekplan.com/v1/user/{userid}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.sleekplan.com/v1/user/{userid}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sleekplan.com/v1/user/{userid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "<string>",
"data": {
"user_id": 123,
"data_id": "<string>",
"admin_id": 123,
"anonymous": true,
"data_name": "<string>",
"data_full_name": "<string>",
"data_mail": "<string>",
"data_img": "<string>",
"segments": [
"<string>"
],
"data": {},
"data_system": {
"ip": "<string>",
"lat": "<string>",
"lng": "<string>",
"city": "<string>",
"browser": "<string>",
"country": "<string>",
"platform": "<string>",
"timezone": "<string>",
"continent": "<string>",
"user_agent": "<string>",
"currency_code": "<string>",
"browser_version": "<string>",
"currency_symbol": "<string>"
},
"stats_feedback": 123,
"stats_votes": 123,
"stats_comments": 123,
"stats_satisfaction": 123,
"stats_promoter": 123,
"notify": 123,
"notify_settings": {
"mention": true,
"changelog": true,
"subscribed": true
},
"weight": 123,
"created": "<string>",
"updated": "<string>"
}
}Was this page helpful?
⌘I
