Get Blog Post Generation Options
curl --request GET \
--url https://api.sellauth.com/v1/shops/{shopId}/blog-posts-generate/options \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sellauth.com/v1/shops/{shopId}/blog-posts-generate/options"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sellauth.com/v1/shops/{shopId}/blog-posts-generate/options', 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.sellauth.com/v1/shops/{shopId}/blog-posts-generate/options",
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.sellauth.com/v1/shops/{shopId}/blog-posts-generate/options"
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.sellauth.com/v1/shops/{shopId}/blog-posts-generate/options")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sellauth.com/v1/shops/{shopId}/blog-posts-generate/options")
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{
"available": true,
"max_count": 3,
"tones": [
"professional",
"casual",
"technical",
"enthusiastic",
"concise"
],
"category_profiles": [
{
"value": "game_enhancement",
"label": "Game enhancement software (cheats, mods, spoofers)"
},
{
"value": "gaming_accounts",
"label": "Game accounts, boosting and in-game goods"
},
{
"value": "digital_accounts",
"label": "Subscriptions, streaming and digital accounts"
},
{
"value": "software_licenses",
"label": "Software licenses and utilities"
},
{
"value": "ebooks_courses",
"label": "E-books, courses and guides"
},
{
"value": "creative_assets",
"label": "Digital art, templates and creative assets"
},
{
"value": "gift_cards",
"label": "Gift cards and game keys"
},
{
"value": "general",
"label": "General digital goods"
}
],
"posts_remaining": 499,
"products": [
{
"id": 1,
"name": "License Keys",
"category_id": 1,
"stock_count": 0
}
],
"categories": [
{
"id": 1,
"name": "Digital Goods",
"parent_id": null
}
]
}Blog Posts
Get Blog Post Generation Options
Everything the generate dialog needs: limits, category profiles, and the shop’s products and categories to pick from.
GET
/
v1
/
shops
/
{shopId}
/
blog-posts-generate
/
options
Get Blog Post Generation Options
curl --request GET \
--url https://api.sellauth.com/v1/shops/{shopId}/blog-posts-generate/options \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sellauth.com/v1/shops/{shopId}/blog-posts-generate/options"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sellauth.com/v1/shops/{shopId}/blog-posts-generate/options', 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.sellauth.com/v1/shops/{shopId}/blog-posts-generate/options",
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.sellauth.com/v1/shops/{shopId}/blog-posts-generate/options"
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.sellauth.com/v1/shops/{shopId}/blog-posts-generate/options")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sellauth.com/v1/shops/{shopId}/blog-posts-generate/options")
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{
"available": true,
"max_count": 3,
"tones": [
"professional",
"casual",
"technical",
"enthusiastic",
"concise"
],
"category_profiles": [
{
"value": "game_enhancement",
"label": "Game enhancement software (cheats, mods, spoofers)"
},
{
"value": "gaming_accounts",
"label": "Game accounts, boosting and in-game goods"
},
{
"value": "digital_accounts",
"label": "Subscriptions, streaming and digital accounts"
},
{
"value": "software_licenses",
"label": "Software licenses and utilities"
},
{
"value": "ebooks_courses",
"label": "E-books, courses and guides"
},
{
"value": "creative_assets",
"label": "Digital art, templates and creative assets"
},
{
"value": "gift_cards",
"label": "Gift cards and game keys"
},
{
"value": "general",
"label": "General digital goods"
}
],
"posts_remaining": 499,
"products": [
{
"id": 1,
"name": "License Keys",
"category_id": 1,
"stock_count": 0
}
],
"categories": [
{
"id": 1,
"name": "Digital Goods",
"parent_id": null
}
]
}Authorizations
You can retrieve your API key from your dashboard under Account > Developers.
Path Parameters
The shop ID.
Response
200 - application/json
Example:
true
Example:
3
Example:
[
"professional",
"casual",
"technical",
"enthusiastic",
"concise"
]
Show child attributes
Show child attributes
Example:
[
{
"value": "game_enhancement",
"label": "Game enhancement software (cheats, mods, spoofers)"
},
{
"value": "gaming_accounts",
"label": "Game accounts, boosting and in-game goods"
},
{
"value": "digital_accounts",
"label": "Subscriptions, streaming and digital accounts"
},
{
"value": "software_licenses",
"label": "Software licenses and utilities"
},
{
"value": "ebooks_courses",
"label": "E-books, courses and guides"
},
{
"value": "creative_assets",
"label": "Digital art, templates and creative assets"
},
{
"value": "gift_cards",
"label": "Gift cards and game keys"
},
{
"value": "general",
"label": "General digital goods"
}
]
Example:
499
Show child attributes
Show child attributes
Example:
[
{
"id": 1,
"name": "License Keys",
"category_id": 1,
"stock_count": 0
}
]
Show child attributes
Show child attributes
Example:
[
{
"id": 1,
"name": "Digital Goods",
"parent_id": null
}
]