API reference
API reference
Select your platform
No SDKs available
No versions available

OVR_Requests_Challenges.h File

Functions

DEPRECATED. Use server-to-server API call instead.A message with type ovrMessage_Challenges_Create will be generated in response.First call ovr_Message_IsError() to check if an error occurred.If no error occurred, the message will contain a payload of type ovrChallengeHandle. Extract the payload from the message handle with ovr_Message_GetChallenge().
If the current user has an invite to the challenge, decline the invite
Parameters
challengeID
The ID of challenge that the user is going to decline. It can be retrieved by ovr_Challenge_GetID().
A message with type ovrMessage_Challenges_DeclineInvite will be generated in response.First call ovr_Message_IsError() to check if an error occurred.If no error occurred, the message will contain a payload of type ovrChallengeHandle. Extract the payload from the message handle with ovr_Message_GetChallenge().
DEPRECATED. Use server-to-server API call instead.A message with type ovrMessage_Challenges_Delete will be generated in response.First call ovr_Message_IsError() to check if an error occurred.This response has no payload. If no error occurred, the request was successful. Yay!
Gets the information for a single challenge
Parameters
challengeID
The id of the challenge whose entries to return.
A message with type ovrMessage_Challenges_Get will be generated in response.First call ovr_Message_IsError() to check if an error occurred.If no error occurred, the message will contain a payload of type ovrChallengeHandle. Extract the payload from the message handle with ovr_Message_GetChallenge().
Requests a block of challenge entries.
Parameters
challengeID
The id of the challenge whose entries to return.
limit
Defines the maximum number of entries to return.
filter
By using ovrLeaderboard_FilterFriends, this allows you to filter the returned values to bidirectional followers.
startAt
Defines whether to center the query on the user or start at the top of the challenge.
A message with type ovrMessage_Challenges_GetEntries will be generated in response.First call ovr_Message_IsError() to check if an error occurred.If no error occurred, the message will contain a payload of type ovrChallengeEntryArrayHandle. Extract the payload from the message handle with ovr_Message_GetChallengeEntryArray().
Requests a block of challenge entries.
Parameters
challengeID
The id of the challenge whose entries to return.
limit
The maximum number of entries to return.
afterRank
The position after which to start. For example, 10 returns challenge results starting with the 11th user.
A message with type ovrMessage_Challenges_GetEntriesAfterRank will be generated in response.First call ovr_Message_IsError() to check if an error occurred.If no error occurred, the message will contain a payload of type ovrChallengeEntryArrayHandle. Extract the payload from the message handle with ovr_Message_GetChallengeEntryArray().
Requests a block of challenge entries. Will return only entries matching the user IDs passed in.
Parameters
challengeID
The id of the challenge whose entries to return.
limit
Defines the maximum number of entries to return.
startAt
Defines whether to center the query on the user or start at the top of the challenge. If this is ovrLeaderboard_StartAtCenteredOnViewer or ovrLeaderboard_StartAtCenteredOnViewerOrTop, then the current user's ID will be automatically added to the query.
userIDs
Defines a list of user ids to get entries for.
userIDLength
The number of user IDs provided.
A message with type ovrMessage_Challenges_GetEntriesByIds will be generated in response.First call ovr_Message_IsError() to check if an error occurred.If no error occurred, the message will contain a payload of type ovrChallengeEntryArrayHandle. Extract the payload from the message handle with ovr_Message_GetChallengeEntryArray().
Requests for a list of challenge
Parameters
challengeOptions
This indicates the options of the challenge and it can be retrieved by ovr_ChallengeOptions_Create.
limit
Limits the maximum number of challenges to be fetched.
A message with type ovrMessage_Challenges_GetList will be generated in response.First call ovr_Message_IsError() to check if an error occurred.If no error occurred, the message will contain a payload of type ovrChallengeArrayHandle. Extract the payload from the message handle with ovr_Message_GetChallengeArray().
Requests the next block of challenges.
Parameters
handle
The return value from ovr_Message_GetChallengeArray().
A message with type ovrMessage_Challenges_GetNextChallenges will be generated in response.First call ovr_Message_IsError() to check if an error occurred.If no error occurred, the message will contain a payload of type ovrChallengeArrayHandle. Extract the payload from the message handle with ovr_Message_GetChallengeArray().
Requests the next block of challenge entries.
Parameters
handle
A message with type ovrMessage_Challenges_GetNextEntries will be generated in response.First call ovr_Message_IsError() to check if an error occurred.If no error occurred, the message will contain a payload of type ovrChallengeEntryArrayHandle. Extract the payload from the message handle with ovr_Message_GetChallengeEntryArray().
Requests the previous block of challenges.
Parameters
handle
The return value from ovr_Message_GetChallengeArray().
A message with type ovrMessage_Challenges_GetPreviousChallenges will be generated in response.First call ovr_Message_IsError() to check if an error occurred.If no error occurred, the message will contain a payload of type ovrChallengeArrayHandle. Extract the payload from the message handle with ovr_Message_GetChallengeArray().
Requests the previous block of challenge entries.
Parameters
handle
A message with type ovrMessage_Challenges_GetPreviousEntries will be generated in response.First call ovr_Message_IsError() to check if an error occurred.If no error occurred, the message will contain a payload of type ovrChallengeEntryArrayHandle. Extract the payload from the message handle with ovr_Message_GetChallengeEntryArray().
If the current user has permission, join the challenge
Parameters
challengeID
The ID of challenge that the user is going to join. It can be retrieved by ovr_Challenge_GetID().
A message with type ovrMessage_Challenges_Join will be generated in response.First call ovr_Message_IsError() to check if an error occurred.If no error occurred, the message will contain a payload of type ovrChallengeHandle. Extract the payload from the message handle with ovr_Message_GetChallenge().
If the current user has permission, leave the challenge
Parameters
challengeID
The ID of challenge that the user is going to leave. It can be retrieved by ovr_Challenge_GetID().
A message with type ovrMessage_Challenges_Leave will be generated in response.First call ovr_Message_IsError() to check if an error occurred.If no error occurred, the message will contain a payload of type ovrChallengeHandle. Extract the payload from the message handle with ovr_Message_GetChallenge().
DEPRECATED. Use server-to-server API call instead.A message with type ovrMessage_Challenges_UpdateInfo will be generated in response.First call ovr_Message_IsError() to check if an error occurred.If no error occurred, the message will contain a payload of type ovrChallengeHandle. Extract the payload from the message handle with ovr_Message_GetChallenge().
Did you find this page helpful?
Thumbs up icon
Thumbs down icon