Inbox Uploads

An InboxUpload is a log record about upload operations that happened in your Inbox.

List Inbox Uploads

SDK Method

inboxupload.List()

Return Object

[]*InboxUpload

Authorization Requirement

Requires either a Site-Wide API key or User API key or session from a User with Folder Admin permissions.

Additional Arguments

Example Request

import (
    "fmt"
    "errors"

    files_sdk "github.com/Files-com/files-sdk-go/v3"
    inbox_upload "github.com/Files-com/files-sdk-go/v3/inboxupload"
)

inboxUploadIterator, err := inbox_upload.List(files_sdk.InboxUploadListParams{})
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Println("Response Error Occurred (" + respErr.Type + "): " + respErr.ErrorMessage)
    } else {
        fmt.Printf("Unexpected Error: %s\n", err.Error())
    }
}

for inboxUploadIterator.Next() {
    inboxUpload := inboxUploadIterator.inboxUpload()
}
err = inboxUploadIterator.Err()
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Println("Response Error Occurred (" + respErr.Type + "): " + respErr.ErrorMessage)
    } else {
        fmt.Printf("Unexpected Error: %s\n", err.Error())
    }
}

The InboxUpload Object

Some of the methods above return a InboxUpload object. The attributes of this object are listed below.

AttributeDescription
InboxRegistration
InboxRegistration
Path
string
Upload path. This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
CreatedAt
date-time
Upload date/time