Avatars

You can retrieve an account’s profile image. This is especially useful if you’d like to use the profile image for a corresponding account in your own product.

Get

Gets a binary represention of an avatar.

1
avatars.get(uniqueId)

Parameters

Name Type Description
uniqueId string Any unique ID associated with an account such as AccountID, RepresentativeID, Routing Number, or User ID

Returns

Promise.<Blob>

Examples

1
2
3
4
5
6
const moov = new Moov(...);
try {
  const avatar = await moov.avatars.get("...");
} catch (err) {
  // ...
}