Get
(
userID
)
|
Retrieve the user with the given ID. This might fail if the ID is invalid or the user is blocked.
NOTE: Users will have a unique ID per application.
Signature
static Request<Models.User> Oculus.Platform.Users.Get(UInt64 userID) Parameters userID: UInt64
User ID retrieved with this application.
Returns Request< Models.User > |
GetAccessToken
()
|
Return an access token string for this user, suitable for making REST calls against graph.oculus.com.
Signature
static Request<string> Oculus.Platform.Users.GetAccessToken() Returns Request< string > |
GetBlockedUsers
()
|
Return the IDs of users entitled to use the current app that are blocked by the specified user
Signature
static Request<Models.BlockedUserList> Oculus.Platform.Users.GetBlockedUsers() Returns Request< Models.BlockedUserList > |
GetLinkedAccounts
(
userOptions
)
|
Returns a list of linked accounts that are associated with the specified service providers.
Customization can be done via UserOptions. Create this object with UserOptions(). The params that could be used are:
Example custom C++ usage:
auto options = ovr_UserOptions_Create(); ovr_UserOptions_AddServiceProvider(options, ovrServiceProvider_Google); ovr_UserOptions_AddServiceProvider(options, ovrServiceProvider_Dropbox); ovr_User_GetLinkedAccounts(options); ovr_UserOptions_Destroy(options);
Signature
static Request<Models.LinkedAccountList> Oculus.Platform.Users.GetLinkedAccounts(UserOptions userOptions) Parameters userOptions: UserOptions
Additional configuration for this request It is optional and the options can be created by UserOptions()
Returns Request< Models.LinkedAccountList > |
GetLoggedInUser
()
|
Retrieve the currently signed in user. This call is available offline.
NOTE: Please be aware that this function will only return the following information about the user: Alias (Oculus ID), ID (App Scoped ID), Profile URL (image_url). If you need to retrieve additional user information, such as presence details, please use the App Scoped ID obtained from Users.GetLoggedInUser() in conjunction with Users.Get(ulong UserID). This will provide access to more comprehensive user data.
NOTE: Users will have a unique ID per application.
Error codes
Signature
static Request<Models.User> Oculus.Platform.Users.GetLoggedInUser() Returns Request< Models.User > |
GetLoggedInUserFriends
()
|
Retrieve a list of the logged in user's bidirectional followers. The payload type will be an array of Models.User
Signature
static Request<Models.UserList> Oculus.Platform.Users.GetLoggedInUserFriends() Returns Request< Models.UserList > |
GetLoggedInUserLocale
()
|
Signature
static string Oculus.Platform.Users.GetLoggedInUserLocale() Returns string |
GetLoggedInUserManagedInfo
()
|
Retrieve the currently signed in user's managed info. This call is not available offline.
NOTE: This will return data only if the logged in user is a managed Meta account (MMA).
Signature
static Request<Models.User> Oculus.Platform.Users.GetLoggedInUserManagedInfo() Returns Request< Models.User > |
GetNextBlockedUserListPage
(
list
)
|
Signature
static Request<Models.BlockedUserList> Oculus.Platform.Users.GetNextBlockedUserListPage(Models.BlockedUserList list) Parameters list: Models.BlockedUserListReturns Request< Models.BlockedUserList > |
GetNextUserCapabilityListPage
(
list
)
|
Signature
static Request<Models.UserCapabilityList> Oculus.Platform.Users.GetNextUserCapabilityListPage(Models.UserCapabilityList list) Parameters Returns Request< Models.UserCapabilityList > |
GetNextUserListPage
(
list
)
|
Signature
static Request<Models.UserList> Oculus.Platform.Users.GetNextUserListPage(Models.UserList list) Parameters list: Models.UserListReturns Request< Models.UserList > |
GetOrgScopedID
(
userID
)
|
returns an ovrID which is unique per org. allows different apps within the same org to identify the user.
Signature
static Request<Models.OrgScopedID> Oculus.Platform.Users.GetOrgScopedID(UInt64 userID) Parameters Returns Request< Models.OrgScopedID > |
GetSdkAccounts
()
|
Returns all accounts belonging to this user. Accounts are the Oculus user and x-users that are linked to this user.
Signature
static Request<Models.SdkAccountList> Oculus.Platform.Users.GetSdkAccounts() Returns Request< Models.SdkAccountList > |
GetUserProof
()
|
Part of the scheme to confirm the identity of a particular user in your backend. You can pass the result of Users.GetUserProof() and a user ID from User::ID to your backend. Your server can then use our api to verify identity. 'https://graph.oculus.com/user_nonce_validate?nonce=USER_PROOF&us er_id=USER_ID&access_token=ACCESS_TOKEN'
NOTE: The nonce is only good for one check and then it is invalidated.
Signature
static Request<Models.UserProof> Oculus.Platform.Users.GetUserProof() Returns Request< Models.UserProof > |
LaunchBlockFlow
(
userID
)
|
Launch the flow for blocking the given user. You can't follow, be followed, invited, or searched by a blocked user, for example. You can remove the block via ovr_User_LaunchUnblockFlow.
Signature
static Request<Models.LaunchBlockFlowResult> Oculus.Platform.Users.LaunchBlockFlow(UInt64 userID) Parameters userID: UInt64
The ID of the user that the viewer is going to launch the block flow request.
Returns Request< Models.LaunchBlockFlowResult > |
LaunchFriendRequestFlow
(
userID
)
|
Launch the flow for sending a follow request to a user.
Signature
static Request<Models.LaunchFriendRequestFlowResult> Oculus.Platform.Users.LaunchFriendRequestFlow(UInt64 userID) Parameters userID: UInt64
The ID of the target user that is going to send the friend follow request to.
Returns Request< Models.LaunchFriendRequestFlowResult > |
LaunchUnblockFlow
(
userID
)
|
Launch the flow for unblocking a user that the viewer has blocked.
Signature
static Request<Models.LaunchUnblockFlowResult> Oculus.Platform.Users.LaunchUnblockFlow(UInt64 userID) Parameters userID: UInt64
The ID of the user that the viewer is going to launch the unblock flow request.
Returns Request< Models.LaunchUnblockFlowResult > |