From 9a700b4dc17031945e44434d8f1929434bd83a52 Mon Sep 17 00:00:00 2001 From: Wim Brand Date: Mon, 27 Sep 2021 20:46:27 +0200 Subject: [PATCH] Add new FileID for PUT upload endpoint --- pixelapi/file.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pixelapi/file.go b/pixelapi/file.go index d485f29..7b185c4 100644 --- a/pixelapi/file.go +++ b/pixelapi/file.go @@ -7,10 +7,13 @@ import ( ) // FileID is returned when a file has been sucessfully uploaded -type FileID struct { +type FileIDCompat struct { Success bool `json:"success"` ID string `json:"id"` } +type FileID struct { + ID string `json:"id"` +} // FileInfo is the public file information response type FileInfo struct {