Added endpoints to set notes on friends. The note is sent with the user details.
Added endpoints for getting a user's public avatars, worlds, and props.
Notes
Set a note example: await window.API.setFriendNote('xxxxxxxx-1d3b-4aff-defb-c167ed99b416', 'This is a note');
The notes are obtainable in the get user details endpoint, the property is called note
The note can have a maximum of 512 characters.
The endpoint will throw errors with the following codes:
400 Invalid Request Body
406 Friend Note is longer than Max Characters (512)
412 User must be friended to set a Friend Note
User's public content
Get user's public avatars: await window.API.getUserPublicAvatars('xxxxxxxx-1d3b-4aff-defb-c167ed99b416');
Get user's public worlds: await window.API.getUserPublicAvatars('xxxxxxxx-1d3b-4aff-defb-c167ed99b416');
Get user's public props: await window.API.getUserPublicAvatars('xxxxxxxx-1d3b-4aff-defb-c167ed99b416');
Changes
Notes
Set a note example:
await window.API.setFriendNote('xxxxxxxx-1d3b-4aff-defb-c167ed99b416', 'This is a note');
The notes are obtainable in the get user details endpoint, the property is called
note
The note can have a maximum of
512
characters.The endpoint will throw errors with the following codes:
400
Invalid Request Body406
Friend Note is longer than Max Characters (512)412
User must be friended to set a Friend NoteUser's public content
Get user's public avatars:
await window.API.getUserPublicAvatars('xxxxxxxx-1d3b-4aff-defb-c167ed99b416');
Get user's public worlds:await window.API.getUserPublicAvatars('xxxxxxxx-1d3b-4aff-defb-c167ed99b416');
Get user's public props:await window.API.getUserPublicAvatars('xxxxxxxx-1d3b-4aff-defb-c167ed99b416');
The response should as follow (for all 3 types):