Files
vrchatapi-rust/docs/InviteApi.md
2021-10-08 12:05:31 +02:00

9.1 KiB

\InviteApi

All URIs are relative to https://api.vrchat.cloud/api/1

Method HTTP request Description
get_invite_message GET /message/{userId}/{messageType}/{messageId} Get Invite Messages
get_invite_messages GET /message/{userId}/{messageType} List Invite Messages
invite_user POST /invite/{userId} Invite User
request_invite POST /requestInvite/{userId} Request Invite
reset_invite_message DELETE /message/{userId}/{messageType}/{messageId} Reset Invite Message
respond_invite POST /invite/{notificationId}/response Respond Invite
update_invite_message PUT /message/{userId}/{messageType}/{messageId} Update Invite Message

get_invite_message

crate::models::InviteMessage get_invite_message(user_id, message_type, message_id) Get Invite Messages

Returns a single Invite Message. This returns the exact same information but less than getInviteMessages. Admin Credentials are required to view messages of other users! Message type refers to a different collection of messages, used during different types of responses. * message = Message during a normal invite * response = Message when replying to a message * request = Message when requesting an invite * requestResponse = Message when replying to a request for invite

Parameters

Name Type Description Required Notes
user_id String [required]
message_type String [required]
message_id i32 [required]

Return type

crate::models::InviteMessage

Authorization

apiKeyCookie, authCookie

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_invite_messages

Veccrate::models::InviteMessage get_invite_messages(user_id, message_type) List Invite Messages

Returns a list of all the users Invite Messages. Admin Credentials are required to view messages of other users! Message type refers to a different collection of messages, used during different types of responses. * message = Message during a normal invite * response = Message when replying to a message * request = Message when requesting an invite * requestResponse = Message when replying to a request for invite

Parameters

Name Type Description Required Notes
user_id String [required]
message_type String [required]

Return type

Veccrate::models::InviteMessage

Authorization

apiKeyCookie, authCookie

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

invite_user

crate::models::Notification invite_user(user_id, invite_request) Invite User

Sends an invite to a user. Returns the Notification of type invite that was sent.

Parameters

Name Type Description Required Notes
user_id String [required]
invite_request Option<InviteRequest> Instance ID when inviting a user.

Return type

crate::models::Notification

Authorization

apiKeyCookie, authCookie

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

request_invite

crate::models::Notification request_invite(user_id) Request Invite

Requests an invite from a user. Returns the Notification of type requestInvite that was sent.

Parameters

Name Type Description Required Notes
user_id String [required]

Return type

crate::models::Notification

Authorization

apiKeyCookie, authCookie

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

reset_invite_message

Veccrate::models::InviteMessage reset_invite_message(user_id, message_type, message_id) Reset Invite Message

Resets a single Invite Message back to it's original message, and then returns a list of all of them. Admin Credentials are required to update messages of other users! Resetting a message respects the rate-limit, but resetting it does not set the rate-limit to 60 like when editing it. It is possible to edit it right after resetting it. Trying to edit a message before the cooldown timer expires results in a 429 Too Fast Error. Message type refers to a different collection of messages, used during different types of responses. * message = Message during a normal invite * response = Message when replying to a message * request = Message when requesting an invite * requestResponse = Message when replying to a request for invite

Parameters

Name Type Description Required Notes
user_id String [required]
message_type String [required]
message_id i32 [required]

Return type

Veccrate::models::InviteMessage

Authorization

apiKeyCookie, authCookie

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

respond_invite

crate::models::Notification respond_invite(notification_id, invite_response) Respond Invite

Sends a world invite to a user.

Parameters

Name Type Description Required Notes
notification_id String [required]
invite_response Option<InviteResponse> Instance ID when inviting a user.

Return type

crate::models::Notification

Authorization

apiKeyCookie, authCookie

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

update_invite_message

Veccrate::models::InviteMessage update_invite_message(user_id, message_type, message_id) Update Invite Message

Updates a single Invite Message and then returns a list of all of them. Admin Credentials are required to update messages of other users! Updating a message automatically sets the cooldown timer to 60 minutes. Trying to edit a message before the cooldown timer expires results in a 429 Too Fast Error. Message type refers to a different collection of messages, used during different types of responses. * message = Message during a normal invite * response = Message when replying to a message * request = Message when requesting an invite * requestResponse = Message when replying to a request for invite

Parameters

Name Type Description Required Notes
user_id String [required]
message_type String [required]
message_id i32 [required]

Return type

Veccrate::models::InviteMessage

Authorization

apiKeyCookie, authCookie

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]