vrchat_dart_generated 1.2.0 copy "vrchat_dart_generated: ^1.2.0" to clipboard
vrchat_dart_generated: ^1.2.0 copied to clipboard

outdated

The generated API used by vrchat_dart. Generated from https://github.com/vrchatapi/specification.

vrchat_dart_generated (EXPERIMENTAL) #

VRChat API Banner

VRChat API Documentation #

This project is an OPEN Open Source Project

Individuals making significant and valuable contributions are given commit-access to the project to contribute as they see fit. This project is more like an open wiki than a standard guarded open source project.

Disclaimer #

This is the official response of the VRChat Team (from Tupper more specifically) on the usage of the VRChat API.

Use of the API using applications other than the approved methods (website, VRChat application) are not officially supported. You may use the API for your own application, but keep these guidelines in mind:

  • We do not provide documentation or support for the API.
  • Do not make queries to the API more than once per 60 seconds.
  • Abuse of the API may result in account termination.
  • Access to API endpoints may break at any given time, with no warning.

As stated, this documentation was not created with the help of the official VRChat team. Therefore this documentation is not an official documentation of the VRChat API and may not be always up to date with the latest versions. If you find that a page or endpoint is not longer valid please create an issue and tell us so we can fix it.

Get in touch with us! #

https://discord.gg/qjZE9C9fkB#vrchat-api

This Dart package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Build package: org.openapitools.codegen.languages.DartDioNextClientCodegen For more information, please visit https://github.com/VRChatAPI

Requirements #

  • Dart 2.12.0 or later OR Flutter 1.26.0 or later
  • Dio 4.0.0+

Installation & Usage #

pub.dev #

To use the package from pub.dev, please include the following in pubspec.yaml

dependencies:
  vrchat_dart_generated: 1.0.0

Github #

If this Dart package is published to Github, please include the following in pubspec.yaml

dependencies:
  vrchat_dart_generated:
    git:
      url: https://github.com/GIT_USER_ID/GIT_REPO_ID.git
      #ref: main

Local development #

To use the package from your local drive, please include the following in pubspec.yaml

dependencies:
  vrchat_dart_generated:
    path: /path/to/vrchat_dart_generated

Getting Started #

Please follow the installation procedure and then run the following:

import 'package:vrchat_dart_generated/vrchat_dart_generated.dart';


final api = VrchatDartGenerated().getAuthenticationApi();
final String userId = userId_example; // String | 

try {
    final response = await api.deleteUserById(userId);
    print(response);
} catch on DioError (e) {
    print("Exception when calling AuthenticationApi->deleteUserById: $e\n");
}

Documentation for API Endpoints #

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

Class Method HTTP request Description
AuthenticationApi deleteUserById PUT /user/{userId}/delete Delete User
AuthenticationApi getCurrentUser GET /auth/user Login and/or Get Current User Info
AuthenticationApi logout PUT /logout Logout
AuthenticationApi verify2FA POST /auth/twofactorauth/totp/verify Verify 2FA code
AuthenticationApi verifyAuthToken GET /auth Verify Auth Token
AuthenticationApi verifyRecoveryCode POST /auth/twofactorauth/otp/verify Verify 2FA code with Recovery code
FilesApi createFile POST /file Create File
FilesApi createFileVersion POST /file/{fileId} Create File Version
FilesApi deleteFile DELETE /file/{fileId} Delete File
FilesApi deleteFileVersion DELETE /file/{fileId}/{versionId} Delete File Version
FilesApi downloadFileVersion GET /file/{fileId}/{versionId} Download File Version
FilesApi finishFileDataUpload PUT /file/{fileId}/{versionId}/{fileType}/finish Finish FileData Upload
FilesApi getFile GET /file/{fileId} Show File
FilesApi getFileDataUploadStatus GET /file/{fileId}/{versionId}/{fileType}/status Check FileData Upload Status
FilesApi getFiles GET /files List Files
FilesApi startFileDataUpload PUT /file/{fileId}/{versionId}/{fileType}/start Start FileData Upload
FriendsApi deleteFriendRequest DELETE /user/{userId}/friendRequest Delete Friend Request
FriendsApi friend POST /user/{userId}/friendRequest Send Friend Request
FriendsApi getFriendStatus GET /user/{userId}/friendStatus Check Friend Status
FriendsApi getFriends GET /auth/user/friends List Friends
FriendsApi unfriend DELETE /auth/user/friends/{userId} Unfriend
NotificationsApi acceptFriendRequest PUT /auth/user/notifications/{notificationId}/accept Accept Friend Request
NotificationsApi clearNotifications PUT /auth/user/notifications/clear Clear All Notifications
NotificationsApi deleteNotification PUT /auth/user/notifications/{notificationId}/hide Delete Notification
NotificationsApi getNotifications GET /auth/user/notifications List Notifications
NotificationsApi markNotificationAsRead PUT /auth/user/notifications/{notificationId}/see Mark As Read
SystemApi getConfig GET /config Fetch API Config
SystemApi getCurrentOnlineUsers GET /visits Current Online Users
SystemApi getHealth GET /health Check API Health
SystemApi getSystemTime GET /time Current System Time
UsersApi getUser GET /users/{userId} Get User by ID
UsersApi getUserByName GET /users/{username}/name Get User by Username
UsersApi searchActiveUsers GET /users/active Search Active Users
UsersApi searchUsers GET /users Search All Users
UsersApi updateUser PUT /users/{userId} Update User Info

Documentation For Models #

Documentation For Authorization #

apiKeyCookie #

  • Type: API key
  • API key parameter name: apiKey
  • Location:

apiKeyQuery #

  • Type: API key
  • API key parameter name: apiKey
  • Location: URL query string

authCookie #

  • Type: API key
  • API key parameter name: auth
  • Location:

authHeader #

  • Type: HTTP basic authentication

Author #

me@ruby.js.org

5
likes
0
pub points
25%
popularity

Publisher

verified publishervrchat.community

The generated API used by vrchat_dart. Generated from https://github.com/vrchatapi/specification.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

built_collection, built_value, dio

More

Packages that depend on vrchat_dart_generated