curl -X GET "https://vantio.app/api/v1/posters/poster_123abc" \ -H "Authorization: Bearer sk_your_secret_key_here"
Copy
{ "id": "poster_123abc", "program_id": "prog_123abc", "student_id": "user_123abc", "qr_code_url": "https://example.com/qr-codes/poster_123abc.png", "location": "Campus Center - Main Entrance", "created_at": "2024-01-15T10:30:00Z", "updated_at": "2024-01-15T10:30:00Z", "metadata": { "poster_type": "standard", "placement_date": "2024-01-15", "dimensions": "11x17", "notes": "Placed near main entrance" }}
Posters
Get Poster
Retrieve detailed information about a specific poster placement
GET
/
api
/
v1
/
posters
/
{id}
Copy
curl -X GET "https://vantio.app/api/v1/posters/poster_123abc" \ -H "Authorization: Bearer sk_your_secret_key_here"
Copy
{ "id": "poster_123abc", "program_id": "prog_123abc", "student_id": "user_123abc", "qr_code_url": "https://example.com/qr-codes/poster_123abc.png", "location": "Campus Center - Main Entrance", "created_at": "2024-01-15T10:30:00Z", "updated_at": "2024-01-15T10:30:00Z", "metadata": { "poster_type": "standard", "placement_date": "2024-01-15", "dimensions": "11x17", "notes": "Placed near main entrance" }}
Retrieve detailed information about a specific poster placement by its unique ID. Use this endpoint to fetch complete poster details including QR code URL, location, and associated metadata.
async function downloadPosterQRCode(posterId) { const poster = await getPosterDetails(posterId); // Use the qr_code_url to download or display the QR code const qrCodeUrl = poster.qr_code_url; // Example: Open in new window window.open(qrCodeUrl, '_blank'); // Or download it const response = await fetch(qrCodeUrl); const blob = await response.blob(); const url = window.URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; a.download = `poster-${posterId}-qr.png`; a.click();}