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<com.meta.horizon.platform.ovr.models.User> com.meta.horizon.platform.ovr.requests.Users.get(long userID) Parameters userID: long
- User ID retrieved with this application.
|
getAccessToken
()
|
Return an access token string for this user, suitable for making REST calls against graph.oculus.com.
Signature
static Request<String> com.meta.horizon.platform.ovr.requests.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<com.meta.horizon.platform.ovr.models.BlockedUserArray> com.meta.horizon.platform.ovr.requests.Users.getBlockedUsers() |
getLoggedInUser
()
|
Retrieve the currently signed in user. This call is available offline.
NOTE: This will not return the user's presence as it should always be 'online' in your application.
NOTE: Users will have a unique ID per application.
Signature
static Request<com.meta.horizon.platform.ovr.models.User> com.meta.horizon.platform.ovr.requests.Users.getLoggedInUser() |
getLoggedInUserFriends
()
|
Retrieve a list of the logged in user's bidirectional followers. The payload type will be an array of com.meta.horizon.platform.ovr.models.User
Signature
static Request<com.meta.horizon.platform.ovr.models.UserArray> com.meta.horizon.platform.ovr.requests.Users.getLoggedInUserFriends() |
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<com.meta.horizon.platform.ovr.models.User> com.meta.horizon.platform.ovr.requests.Users.getLoggedInUserManagedInfo() |
getOrgScopedID
(
userID
)
|
returns an ovrID which is unique per org. allows different apps within the same org to identify the user.
Signature
static Request<com.meta.horizon.platform.ovr.models.OrgScopedID> com.meta.horizon.platform.ovr.requests.Users.getOrgScopedID(long userID) Parameters userID: long
- The id of the user that we are going to get its org scoped ID com.meta.horizon.platform.ovr.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<com.meta.horizon.platform.ovr.models.SdkAccountArray> com.meta.horizon.platform.ovr.requests.Users.getSdkAccounts() |
getUserProof
()
|
Part of the scheme to confirm the identity of a particular user in your backend. You can pass the result of com.meta.horizon.platform.ovr.requests.Users#getUserProof() and a user ID from com.meta.horizon.platform.ovr.models.User#getID() to your backend. Your server can then use our api to verify identity. 'https://graph.oculus.com/user_nonce_validate?nonce=USER_PROOF&user_id=USER_ID&access_token=ACCESS_TOKEN'
NOTE: The nonce is only good for one check and then it is invalidated.
Signature
static Request<com.meta.horizon.platform.ovr.models.UserProof> com.meta.horizon.platform.ovr.requests.Users.getUserProof() |
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<com.meta.horizon.platform.ovr.models.LaunchBlockFlowResult> com.meta.horizon.platform.ovr.requests.Users.launchBlockFlow(long userID) Parameters userID: long
- The ID of the user that the viewer is going to launch the block flow request.
|
launchFriendRequestFlow
(
userID
)
|
Launch the flow for sending a follow request to a user.
Signature
static Request<com.meta.horizon.platform.ovr.models.LaunchFriendRequestFlowResult> com.meta.horizon.platform.ovr.requests.Users.launchFriendRequestFlow(long userID) Parameters userID: long
- The ID of the target user that is going to send the friend follow request to.
|
launchUnblockFlow
(
userID
)
|
Launch the flow for unblocking a user that the viewer has blocked.
Signature
static Request<com.meta.horizon.platform.ovr.models.LaunchUnblockFlowResult> com.meta.horizon.platform.ovr.requests.Users.launchUnblockFlow(long userID) Parameters userID: long
- The ID of the user that the viewer is going to launch the unblock flow request.
|