API EventPics
L'API consente di caricare automaticamente foto in un album EventPics, ad esempio da un photobooth.
L'API consente di caricare automaticamente foto in un album EventPics, ad esempio da un photobooth.
Ottieni la tua chiave personale nell'app o nella Web App EventPics. Apri il tuo evento e vai alla gestione delle chiavi API.
I seguenti endpoint sono disponibili per le integrazioni. Tutte le richieste richiedono la tua chiave API. Per geteventsandalbums invia la chiave nell'header (consigliato: Authorization: Bearer <API_KEY>, alternativa X-API-Key: <API_KEY>); per gli endpoint di upload inviala nel corpo JSON.
POST Richiedi URL di upload
https://api.eventpics.net/getuploadurl
Parametri (JSON)
apiKey: string (required)linkId: string (required)albumId: string (optional)fileName: string (required)takenAt: number (optional) – Unix timestamp in millisecondsRisposta
uploadUrl: stringGET Recupera eventi e album
https://api.eventpics.net/geteventsandalbums
Autenticazione
Authorization: Bearer YOUR_API_KEY (recommended)X-API-Key: YOUR_API_KEYRisposta
events: array of objects with title, linkId, albumsCome funziona il flusso di upload. La uploadUrl è valida per circa 300 secondi.
GET https://api.eventpics.net/geteventsandalbums
Authorization: Bearer YOUR_API_KEY (or X-API-Key){
"Authorization": "Bearer YOUR_API_KEY"
}
{
"events": [
{
"title": "My Event",
"linkId": "EVENT_LINK_ID",
"albums": [
{ "title": "Album name", "albumId": "ALBUM_ID" }
]
}
]
}
POST https://api.eventpics.net/getuploadurl
{
"apiKey": "YOUR_API_KEY",
"linkId": "EVENT_LINK_ID",
"albumId": "ALBUM_ID",
"fileName": "photo.jpg",
"takenAt": 1712345678901,
}
{
"uploadUrl": "SIGNED_URL"
}
PUT uploadUrl
PUT {{uploadUrl}}
Content-Type: image/jpeg
(binary file content)