Verificar citação ou repostagem
curl --request POST \
--url https://api.sorsa.io/v3/check-quoted \
--header 'ApiKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"tweet_link": "https://twitter.com/TweetScout_io/status/1782368585664626774",
"user_id": "44196397",
"user_link": "https://twitter.com/elonmusk",
"username": "elonmusk"
}
'import requests
url = "https://api.sorsa.io/v3/check-quoted"
payload = {
"tweet_link": "https://twitter.com/TweetScout_io/status/1782368585664626774",
"user_id": "44196397",
"user_link": "https://twitter.com/elonmusk",
"username": "elonmusk"
}
headers = {
"ApiKey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {ApiKey: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
tweet_link: 'https://twitter.com/TweetScout_io/status/1782368585664626774',
user_id: '44196397',
user_link: 'https://twitter.com/elonmusk',
username: 'elonmusk'
})
};
fetch('https://api.sorsa.io/v3/check-quoted', 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.sorsa.io/v3/check-quoted",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'tweet_link' => 'https://twitter.com/TweetScout_io/status/1782368585664626774',
'user_id' => '44196397',
'user_link' => 'https://twitter.com/elonmusk',
'username' => 'elonmusk'
]),
CURLOPT_HTTPHEADER => [
"ApiKey: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sorsa.io/v3/check-quoted"
payload := strings.NewReader("{\n \"tweet_link\": \"https://twitter.com/TweetScout_io/status/1782368585664626774\",\n \"user_id\": \"44196397\",\n \"user_link\": \"https://twitter.com/elonmusk\",\n \"username\": \"elonmusk\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("ApiKey", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.sorsa.io/v3/check-quoted")
.header("ApiKey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"tweet_link\": \"https://twitter.com/TweetScout_io/status/1782368585664626774\",\n \"user_id\": \"44196397\",\n \"user_link\": \"https://twitter.com/elonmusk\",\n \"username\": \"elonmusk\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sorsa.io/v3/check-quoted")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["ApiKey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tweet_link\": \"https://twitter.com/TweetScout_io/status/1782368585664626774\",\n \"user_id\": \"44196397\",\n \"user_link\": \"https://twitter.com/elonmusk\",\n \"username\": \"elonmusk\"\n}"
response = http.request(request)
puts response.read_body{
"date": "2024-04-27 06:43:09",
"status": "quoted",
"text": "Quote text",
"user_protected": false
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Verificação
Verificar citação ou repostagem
Verifica se um usuário citou ou repostou uma publicação. Retorna status com um destes valores: quoted, retweet ou not_found. Se uma citação ou repostagem for encontrada, também retorna a data da interação e o texto da citação, quando aplicável. Identifique o usuário com username, user_link ou user_id.
POST
/
check-quoted
Verificar citação ou repostagem
curl --request POST \
--url https://api.sorsa.io/v3/check-quoted \
--header 'ApiKey: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"tweet_link": "https://twitter.com/TweetScout_io/status/1782368585664626774",
"user_id": "44196397",
"user_link": "https://twitter.com/elonmusk",
"username": "elonmusk"
}
'import requests
url = "https://api.sorsa.io/v3/check-quoted"
payload = {
"tweet_link": "https://twitter.com/TweetScout_io/status/1782368585664626774",
"user_id": "44196397",
"user_link": "https://twitter.com/elonmusk",
"username": "elonmusk"
}
headers = {
"ApiKey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {ApiKey: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
tweet_link: 'https://twitter.com/TweetScout_io/status/1782368585664626774',
user_id: '44196397',
user_link: 'https://twitter.com/elonmusk',
username: 'elonmusk'
})
};
fetch('https://api.sorsa.io/v3/check-quoted', 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.sorsa.io/v3/check-quoted",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'tweet_link' => 'https://twitter.com/TweetScout_io/status/1782368585664626774',
'user_id' => '44196397',
'user_link' => 'https://twitter.com/elonmusk',
'username' => 'elonmusk'
]),
CURLOPT_HTTPHEADER => [
"ApiKey: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sorsa.io/v3/check-quoted"
payload := strings.NewReader("{\n \"tweet_link\": \"https://twitter.com/TweetScout_io/status/1782368585664626774\",\n \"user_id\": \"44196397\",\n \"user_link\": \"https://twitter.com/elonmusk\",\n \"username\": \"elonmusk\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("ApiKey", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.sorsa.io/v3/check-quoted")
.header("ApiKey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"tweet_link\": \"https://twitter.com/TweetScout_io/status/1782368585664626774\",\n \"user_id\": \"44196397\",\n \"user_link\": \"https://twitter.com/elonmusk\",\n \"username\": \"elonmusk\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sorsa.io/v3/check-quoted")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["ApiKey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tweet_link\": \"https://twitter.com/TweetScout_io/status/1782368585664626774\",\n \"user_id\": \"44196397\",\n \"user_link\": \"https://twitter.com/elonmusk\",\n \"username\": \"elonmusk\"\n}"
response = http.request(request)
puts response.read_body{
"date": "2024-04-27 06:43:09",
"status": "quoted",
"text": "Quote text",
"user_protected": false
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Autorizações
Corpo
application/json
Link da publicação e link do usuário, username ou user_id.
Resposta
OK
Data da interação (se encontrada).
Exemplo:
"2024-04-27 06:43:09"
Tipo de interação: quoted, retweet ou not_found.
Exemplo:
"quoted"
Texto da publicação com citação (se o status for quoted).
Exemplo:
"Quote text"
true se a conta do usuário verificado for protegida.
Exemplo:
false
Esta página foi útil?