cURL
curl "https://api.superskope.com/api/v1/chats/120000000000@g.us/messages/false_120000000000@g.us_EXAMPLE/media" \
-H "Authorization: Bearer $SUPERSKOPE_API_KEY" \
-o attachment.binimport { SuperSkope } from '@superskope/sdk';
const client = new SuperSkope({
origin: 'https://api.superskope.com',
apiKey: process.env.SUPERSKOPE_API_KEY,
});
const result = await client.downloadMedia('120000000000@g.us', 'false_120000000000@g.us_EXAMPLE');
console.log(result);
import os
import requests
response = requests.get(
"https://api.superskope.com/api/v1/chats/120000000000@g.us/messages/false_120000000000@g.us_EXAMPLE/media",
headers={"Authorization": f"Bearer {os.environ['SUPERSKOPE_API_KEY']}"},
timeout=40,
)
print(response.status_code, response.headers.get("Content-Type"), len(response.content))
"<string>"{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Messages
Download attachment
Download private attachment bytes. Requires messages:read. Only the key’s selected conversations are accessible.
cURL
curl "https://api.superskope.com/api/v1/chats/120000000000@g.us/messages/false_120000000000@g.us_EXAMPLE/media" \
-H "Authorization: Bearer $SUPERSKOPE_API_KEY" \
-o attachment.binimport { SuperSkope } from '@superskope/sdk';
const client = new SuperSkope({
origin: 'https://api.superskope.com',
apiKey: process.env.SUPERSKOPE_API_KEY,
});
const result = await client.downloadMedia('120000000000@g.us', 'false_120000000000@g.us_EXAMPLE');
console.log(result);
import os
import requests
response = requests.get(
"https://api.superskope.com/api/v1/chats/120000000000@g.us/messages/false_120000000000@g.us_EXAMPLE/media",
headers={"Authorization": f"Bearer {os.environ['SUPERSKOPE_API_KEY']}"},
timeout=40,
)
print(response.status_code, response.headers.get("Content-Type"), len(response.content))
"<string>"{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}