Retrieve a post
curl --request GET \
--url https://api.sleekplan.com/v1/post/{postid} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sleekplan.com/v1/post/{postid}"
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/post/{postid}', 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/post/{postid}",
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/post/{postid}"
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/post/{postid}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sleekplan.com/v1/post/{postid}")
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": {
"feedback_id": 123,
"product_id": 123,
"title": "<string>",
"description": "<string>",
"status": "<string>",
"trend": 123,
"type": "<string>",
"total_up": 123,
"total_down": 123,
"total_sum": 123,
"total_comments": 123,
"total_ratio": 123,
"total_subscriber": 123,
"scoring": 123,
"effort": 123,
"owner_id": 123,
"merge_id": 123,
"is_active": 123,
"notify": 123,
"tags": {},
"estimated": 123,
"created": "<string>",
"updated": "<string>",
"vote": 123,
"subscription": 123,
"description_html": "<string>",
"can_edit": true,
"can_delete": true,
"can_vote": true,
"can_comment": true,
"can_update": true,
"user": {
"user_id": 123,
"admin_id": 123,
"sso": true,
"anonymous": true,
"data_name": "<string>",
"data_full_name": "<string>",
"data_mail": "<string>",
"data_img": "<string>",
"segments": [
{}
]
}
}
}Post
Retrieve a post
GET
/
post
/
{postid}
Retrieve a post
curl --request GET \
--url https://api.sleekplan.com/v1/post/{postid} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sleekplan.com/v1/post/{postid}"
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/post/{postid}', 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/post/{postid}",
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/post/{postid}"
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/post/{postid}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sleekplan.com/v1/post/{postid}")
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": {
"feedback_id": 123,
"product_id": 123,
"title": "<string>",
"description": "<string>",
"status": "<string>",
"trend": 123,
"type": "<string>",
"total_up": 123,
"total_down": 123,
"total_sum": 123,
"total_comments": 123,
"total_ratio": 123,
"total_subscriber": 123,
"scoring": 123,
"effort": 123,
"owner_id": 123,
"merge_id": 123,
"is_active": 123,
"notify": 123,
"tags": {},
"estimated": 123,
"created": "<string>",
"updated": "<string>",
"vote": 123,
"subscription": 123,
"description_html": "<string>",
"can_edit": true,
"can_delete": true,
"can_vote": true,
"can_comment": true,
"can_update": true,
"user": {
"user_id": 123,
"admin_id": 123,
"sso": true,
"anonymous": true,
"data_name": "<string>",
"data_full_name": "<string>",
"data_mail": "<string>",
"data_img": "<string>",
"segments": [
{}
]
}
}
}Was this page helpful?
⌘I
