Beaker Docs
  • Welcome
  • Getting Started with Beaker
  • Joining the Social Network
  • Why use Beaker?
  • Beginner
    • Creating New Hyperdrives
    • Changing a Drive's Title or Thumbnail
    • Using the Editor
    • Detaching the Editor
    • Creating Files and Folders
    • Importing and Exporting Files
    • Sharing Hyperdrives
    • Hosting Hyperdrives
  • Intermediate
    • Your Profile Drive
    • Your Address Book
    • Your System Drive
  • Advanced
    • Webterm
    • Creating Mounts
    • Editing File Metadata
    • Forking Hyperdrives
    • Comparing and Merging Hyperdrives
  • APIs
    • beaker.capabilities
    • beaker.contacts
    • beaker.hyperdrive
    • beaker.markdown
    • beaker.peersockets
    • beaker.shell
    • beaker.terminal
  • Developers
    • Introduction to Hyperdrive
    • Index.json Manifest
    • Content-Type Negotiation
    • Frontends (.ui folder)
    • .Goto Files
  • Help
    • Hole-punchability
Powered by GitBook
On this page
  • beaker.contacts.requestProfile()
  • beaker.contacts.requestContact()
  • beaker.contacts.requestContacts()
  • beaker.contacts.list()

Was this helpful?

  1. APIs

beaker.contacts

This API gives read access to the user's address book

beaker.contacts.requestProfile()

Creates a dialog for selecting one of the user's profile drives.

  • Returns Promise<Object>

    • url String. The profile drive's URL.

    • title String. The profile drive's display name.

    • description String. The profile drive's bio.

var profile = await beaker.contacts.requestProfile()

beaker.contacts.requestContact()

Creates a dialog for selecting one of the user's contacts in their address book.

  • Returns Promise<Object>

    • url String. The profile drive's URL.

    • title String. The profile drive's display name.

    • description String. The profile drive's bio.

var contact = await beaker.contacts.requestContact()

beaker.contacts.requestContacts()

Creates a dialog for selecting multiple of the user's contacts in their address book.

  • Returns Promise<Array<Object>>

    • url String. The profile drive's URL.

    • title String. The profile drive's display name.

    • description String. The profile drive's bio.

var contacts = await beaker.contacts.requestContacts()

beaker.contacts.list()

Returns the full list of contacts in the address book. Requires user permission.

  • Returns Promise<Array<Object>>

    • url String. The profile drive's URL.

    • title String. The profile drive's display name.

    • description String. The profile drive's bio.

var contacts = await beaker.contacts.list()
Previousbeaker.capabilitiesNextbeaker.hyperdrive

Last updated 5 years ago

Was this helpful?