Inbox Recipients

An InboxRecipient is a person who has had an inbox shared with them via email invitation.

List Inbox Recipients

SDK Method

Files::InboxRecipient.list

Return Object

List<InboxRecipient>

Authorization Requirement

Available to all authenticated keys or sessions.

Method Arguments

ArgumentDescription
inbox_id
int64
Required
List recipients for the inbox with this ID.

Additional Arguments

Example Request

begin
  inbox_recipients = Files::InboxRecipient.list(
    inbox_id: 1
  )
  inbox_recipients.auto_paging_each do |inbox_recipient|
    # Operate on inbox_recipient
  end
rescue Files::NotAuthenticatedError => e
  puts "Authentication Error Occurred (#{e.class.to_s}): " + e.message
rescue Files::Error => e
  puts "Unknown Error Occurred (#{e.class.to_s}): " + e.message
end

Create Inbox Recipient

SDK Method

Files::InboxRecipient.create

Return Object

InboxRecipient

Authorization Requirement

Available to all authenticated keys or sessions.

Method Arguments

ArgumentDescription
inbox_id
int64
Required
Inbox to share.
recipient
string
Required
Email address to share this inbox with.
name
string
Name of recipient.
company
string
Company of recipient.
note
string
Note to include in email.
share_after_create
boolean
Set to true to share the link with the recipient upon creation.

Example Request

begin
  inbox_recipient = Files::InboxRecipient.create(
    inbox_id: 1,
    recipient: "johndoe@gmail.com"
  )
  # Operate on inbox_recipient
rescue Files::NotAuthenticatedError => e
  puts "Authentication Error Occurred (#{e.class.to_s}): " + e.message
rescue Files::Error => e
  puts "Unknown Error Occurred (#{e.class.to_s}): " + e.message
end

The InboxRecipient Object

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

AttributeDescription
company
string
The recipient's company.
name
string
The recipient's name.
note
string
A note sent to the recipient with the inbox.
recipient
string
The recipient's email address.
sent_at
date-time
When the Inbox was shared with this recipient.