User.prototype.imageUrl()

Get the user’s profile image URL.

Syntax

user.imageUrl(size int) string

Description

Get the user’s profile image URL including query parameters that specify its size and provide caching.

For example, /..v2/profile-image?userId=u1-0000&size=64&o1-cache=a50b9cfd.

Examples

Get the profile image URL of the sandbox user.

Subscribe to our newsletter!