RSS फ़ीड प्राप्त करें
curl --request GET \
--url https://api.ayrshare.com/api/feed \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ayrshare.com/api/feed', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.ayrshare.com/api/feed"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ayrshare.com/api/feed",
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.ayrshare.com/api/feed"
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.ayrshare.com/api/feed")
.header("Authorization", "Bearer <token>")
.asString();{
"status": "success",
"feeds": [
{
"autoHashtag": false,
"created": "2022-05-16T23:20:03.405Z",
"description": "Social Media APIs that enable you to send social media posts effortlessly",
"id": "_3yhtyd88",
"image": {
"height": "32",
"link": "https://www.ayrshare.com",
"title": "Ayrshare",
"width": "32",
"url": "https://www.ayrshare.com/wp-content/uploads/2020/07/cropped-ayr-icon-2FKLDFB-32x32.png"
},
"link": "https://www.ayrshare.com",
"title": "Ayrshare",
"type": "rss",
"updated": "2022-05-16T23:20:17.124Z",
"url": "https://www.ayrshare.com/feed/",
"useFirstImage": true
}
]
}
Feed
RSS फ़ीड प्राप्त करें
आपके account में पंजीकृत हर RSS feed लौटाएं, हर feed के URL, title, link, autoHashtag और useFirstImage settings, तथा बनाने और अपडेट की तारीखों के साथ।
GET
/
feed
RSS फ़ीड प्राप्त करें
curl --request GET \
--url https://api.ayrshare.com/api/feed \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ayrshare.com/api/feed', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.ayrshare.com/api/feed"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ayrshare.com/api/feed",
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.ayrshare.com/api/feed"
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.ayrshare.com/api/feed")
.header("Authorization", "Bearer <token>")
.asString();{
"status": "success",
"feeds": [
{
"autoHashtag": false,
"created": "2022-05-16T23:20:03.405Z",
"description": "Social Media APIs that enable you to send social media posts effortlessly",
"id": "_3yhtyd88",
"image": {
"height": "32",
"link": "https://www.ayrshare.com",
"title": "Ayrshare",
"width": "32",
"url": "https://www.ayrshare.com/wp-content/uploads/2020/07/cropped-ayr-icon-2FKLDFB-32x32.png"
},
"link": "https://www.ayrshare.com",
"title": "Ayrshare",
"type": "rss",
"updated": "2022-05-16T23:20:17.124Z",
"url": "https://www.ayrshare.com/feed/",
"useFirstImage": true
}
]
}
Header Parameters
{
"status": "success",
"feeds": [
{
"autoHashtag": false,
"created": "2022-05-16T23:20:03.405Z",
"description": "Social Media APIs that enable you to send social media posts effortlessly",
"id": "_3yhtyd88",
"image": {
"height": "32",
"link": "https://www.ayrshare.com",
"title": "Ayrshare",
"width": "32",
"url": "https://www.ayrshare.com/wp-content/uploads/2020/07/cropped-ayr-icon-2FKLDFB-32x32.png"
},
"link": "https://www.ayrshare.com",
"title": "Ayrshare",
"type": "rss",
"updated": "2022-05-16T23:20:17.124Z",
"url": "https://www.ayrshare.com/feed/",
"useFirstImage": true
}
]
}