AstroDogeDX / CVRX

A standalone companion app for ChilloutVR that expands the user experience!
MIT License
21 stars 4 forks source link

Updated to new API structure, added Friend Notes, and Public Content #45

Closed kafeijao closed 11 months ago

kafeijao commented 11 months ago

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:

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');

The response should as follow (for all 3 types):

const entries = [{
         id: 'xxxxxxxx-f914-40c2-833b-eb94e7099a97',
         name: "E-Bumpin'",
         imageUrl: 'https://files.abidata.io/user_content/spawnables/xxxxxxxx-f914-40c2-833b-eb94e7099a97/xxxxxxxx-f914-40c2-833b-eb94e7099a97.png',
         imageHash: "6640ace56daa29722f2ac490d4a439f82bd75eeb"
}];
AstroDogeDX commented 11 months ago

Very kino, very gucci. Thank you.