Show post
curl --request GET \
--url https://api.publishbuddy.com/v1/posts/{post} \
--header 'Authorization: <authorization>'import requests
url = "https://api.publishbuddy.com/v1/posts/{post}"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.publishbuddy.com/v1/posts/{post}', 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.publishbuddy.com/v1/posts/{post}",
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: <authorization>"
],
]);
$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.publishbuddy.com/v1/posts/{post}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
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.publishbuddy.com/v1/posts/{post}")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.publishbuddy.com/v1/posts/{post}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"data": {
"post_id": "<string>",
"id": "<string>",
"content": "<string>",
"account_ids": [
"<string>"
],
"scheduled_for": "<string>",
"timezone": "<string>",
"media_ids": [
"<string>"
],
"media": {
"media_id": "<string>",
"type": "<string>",
"width": 123,
"height": 123,
"duration": 123
},
"platform_content": [
"<unknown>"
],
"publish_type": "<string>",
"status": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"link": "<string>",
"labels": "<string>",
"comments": [
{
"id": "<string>",
"text": "<string>",
"delay_n": 123,
"delay_type": "<string>",
"media_ids": [
"<string>"
],
"media": {
"media_id": "<string>",
"type": "<string>",
"width": 123,
"height": 123,
"duration": 123
}
}
],
"published_at": "<string>",
"error_message": "<string>",
"destinations": [
{
"account_id": "<string>",
"account_name": "<string>",
"platform": "<string>",
"platform_post_id": "<string>",
"platform_post_url": null,
"published_at": "<string>",
"error": "<string>",
"status": "<string>"
}
]
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Posts
Show post
GET
/
posts
/
{post}
Show post
curl --request GET \
--url https://api.publishbuddy.com/v1/posts/{post} \
--header 'Authorization: <authorization>'import requests
url = "https://api.publishbuddy.com/v1/posts/{post}"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.publishbuddy.com/v1/posts/{post}', 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.publishbuddy.com/v1/posts/{post}",
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: <authorization>"
],
]);
$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.publishbuddy.com/v1/posts/{post}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
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.publishbuddy.com/v1/posts/{post}")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.publishbuddy.com/v1/posts/{post}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"data": {
"post_id": "<string>",
"id": "<string>",
"content": "<string>",
"account_ids": [
"<string>"
],
"scheduled_for": "<string>",
"timezone": "<string>",
"media_ids": [
"<string>"
],
"media": {
"media_id": "<string>",
"type": "<string>",
"width": 123,
"height": 123,
"duration": 123
},
"platform_content": [
"<unknown>"
],
"publish_type": "<string>",
"status": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"link": "<string>",
"labels": "<string>",
"comments": [
{
"id": "<string>",
"text": "<string>",
"delay_n": 123,
"delay_type": "<string>",
"media_ids": [
"<string>"
],
"media": {
"media_id": "<string>",
"type": "<string>",
"width": 123,
"height": 123,
"duration": 123
}
}
],
"published_at": "<string>",
"error_message": "<string>",
"destinations": [
{
"account_id": "<string>",
"account_name": "<string>",
"platform": "<string>",
"platform_post_id": "<string>",
"platform_post_url": null,
"published_at": "<string>",
"error": "<string>",
"status": "<string>"
}
]
}
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}