ProfileApi
Last updated
Last updated
You need the scope to access this API.
OrganizationProfileInfoWithId
OrganizationProfileInfo
ProfileInfo
constructor(user, endpoint)
Create a Profile API object.
endpoint
should be the Vulos Identity endpoint.
async info(id)
Get an user's public profile by the user's ID.
async organization(id)
Get an organization's public profile by the organization's ID.
async organizationSearch(search, amount, offset)
Search for an organization by name using a string.
search
is the string we are searching with in the organization's name;
amount
is the maximal amount of elements that can be returned (absolute maximal is 100
, default is 10
), this argument is optional;
offset
is the amount of organizations that will get skipped in the result (default is 0
), this argument is optional;
user
should be an instance of the object.
The result implements the interface.
This method's response has the profile:info
prefix.
The result implements the interface.
This method's response has the profile:organization
prefix.
The result implements the interface.
This method's response has the profile:organization:search
prefix.