ProfileApi
You need the profile:read scope to access this API.
Interfaces
OrganizationProfileInfoWithId
OrganizationProfileInfoWithIdinterface OrganizationProfileInfoWithId implements OrganizationProfileInfo {
id: number
}OrganizationProfileInfo
OrganizationProfileInfointerface OrganizationProfileInfo {
name: string,
address?: string,
city?: string,
country?: string,
state?: string,
website?: string,
verified?: boolean,
uniqueId?: string,
zipCode?: string
}ProfileInfo
ProfileInfoMethods
constructor(user, endpoint)
constructor(user, endpoint)Create a Profile API object.
usershould be an instance of theUserobject.endpointshould be the Vulos Identity endpoint.
async info(id)
async info(id)Get an user's public profile by the user's ID.
The result implements the ProfileInfo interface.
async organization(id)
async organization(id)Get an organization's public profile by the organization's ID.
The result implements the OrganizationProfileInfo interface.
async organizationSearch(search, amount, offset)
async organizationSearch(search, amount, offset)Search for an organization by name using a string.
searchis the string we are searching with in the organization's name;amountis the maximal amount of elements that can be returned (absolute maximal is100, default is10), this argument is optional;offsetis the amount of organizations that will get skipped in the result (default is0), this argument is optional;
The result implements the OrganizationProfileInfoWithId interface.
Last updated