GET
Obtener una miniatura procesada de un fichero de un documento entrante
Scope:
inbox:inbox.readhttps://api.holded.com/api/v2/inbox/{incomingDocumentId}/files/{filename}/previewReturns a PNG thumbnail of the file, resized to one of a closed set of platform widths. Omitting both width and height returns the original image unresized.
Parámetros
Parámetros de ruta
incomingDocumentId
stringobligatorioID del documento entrante (ObjectId hexadecimal de 24 caracteres)
filename
stringobligatorioNombre del fichero
Parámetros de consulta
width
integeropcionalAncho en píxeles
"32""40""86""248"height
integeropcionalAlto en píxeles
"32""40"Petición
python
import requests
url = "https://api.holded.com/api/v2/inbox/507f1f77bcf86cd799439011/files/document.pdf/preview?width=86&height=40"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())Respuestas
Respuesta
json
"string"Respuestas exitosas
200Miniatura PNG procesadaimage/pngstring<binary>
Respuestas de error
401API key inválida o no proporcionadaapplication/json403Permisos insuficientesapplication/json404Documento o fichero no encontradoapplication/json429Límite de solicitudes excedidoapplication/json