Blog
Get Atom feed
Get Atom feed for blog posts (public endpoint)
Get Atom feed Get Atom feed for blog posts (public endpoint) GET https://api.appgram.dev/portal/blog/atom.xml curl --request GET \ --url 'https://api.appgram.dev/portal/blog/atom.xml?project_id=<project_id>' Authentication: None 200: OK 400: Bad Request 500: Internal Server Error
Authorizations
NoneNo management API key is required. Supply the project context and any customer credential listed in this operation.
Query parameters
project_idstringqueryResponses
200OK
400Bad Request
500Internal Server Error
curl --request GET \
--url 'https://api.appgram.dev/portal/blog/atom.xml?project_id=<project_id>'const response = await fetch("https://api.appgram.dev/portal/blog/atom.xml?project_id=<project_id>", {
method: "GET",
headers: {},
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.text());
import requests
response = requests.request(
"GET",
"https://api.appgram.dev/portal/blog/atom.xml?project_id=<project_id>",
headers={},
timeout=30,
)
response.raise_for_status()
print(response.text)
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.appgram.dev/portal/blog/atom.xml?project_id=<project_id>"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}import Foundation
var request = URLRequest(url: URL(string: "https://api.appgram.dev/portal/blog/atom.xml?project_id=<project_id>")!)
request.httpMethod = "GET"
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))
// Requires OkHttp 4.x.
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.RequestBody.Companion.toRequestBody
fun main() {
val request = Request.Builder()
.url("https://api.appgram.dev/portal/blog/atom.xml?project_id=<project_id>")
.method("GET", null)
.build()
OkHttpClient().newCall(request).execute().use { response ->
println(response.body?.string())
}
}
// Requires package:http in pubspec.yaml.
import 'package:http/http.dart' as http;
Future<void> main() async {
final request = http.Request("GET", Uri.parse("https://api.appgram.dev/portal/blog/atom.xml?project_id=<project_id>"));
request.headers.addAll({
});
final response = await request.send();
print(await response.stream.bytesToString());
}
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("https://api.appgram.dev/portal/blog/atom.xml?project_id=<project_id>"),
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}"string"