import 'package:vrchat_dart_generated/api.dart';
All URIs are relative to https://api.vrchat.cloud/api/1
Method | HTTP request | Description |
---|---|---|
addFavorite | POST /favorites | Add Favorite |
clearFavoriteGroup | DELETE /favorite/group/{favoriteGroupType}/{favoriteGroupName}/{userId} | Clear Favorite Group |
getFavorite | GET /favorites/{favoriteId} | Show Favorite |
getFavoriteGroup | GET /favorite/group/{favoriteGroupType}/{favoriteGroupName}/{userId} | Show Favorite Group |
getFavoriteGroups | GET /favorite/groups | List Favorite Groups |
getFavorites | GET /favorites | List Favorites |
removeFavorite | DELETE /favorites/{favoriteId} | Remove Favorite |
updateFavoriteGroup | PUT /favorite/group/{favoriteGroupType}/{favoriteGroupName}/{userId} | Update Favorite Group |
Favorite addFavorite(addFavoriteRequest)
Add Favorite
Add a new favorite. Friend groups are named group_0
through group_3
. Avatar and World groups are named avatars1
to avatars4
and worlds1
to worlds4
. You cannot add people whom you are not friends with to your friends list. Destroying a friendship removes the person as favorite on both sides.
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getFavoritesApi();
final AddFavoriteRequest addFavoriteRequest = {"type":"friend","favoriteId":"usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469","tags":["group_0"]}; // AddFavoriteRequest |
try {
final response = api.addFavorite(addFavoriteRequest);
print(response);
} catch on DioException (e) {
print('Exception when calling FavoritesApi->addFavorite: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
addFavoriteRequest | AddFavoriteRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Success clearFavoriteGroup(favoriteGroupType, favoriteGroupName, userId)
Clear Favorite Group
Clear ALL contents of a specific favorite group.
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getFavoritesApi();
final String favoriteGroupType = favoriteGroupType_example; // String | The type of group to fetch, must be a valid FavoriteType.
final String favoriteGroupName = favoriteGroupName_example; // String | The name of the group to fetch, must be a name of a FavoriteGroup.
final String userId = userId_example; // String | Must be a valid user ID.
try {
final response = api.clearFavoriteGroup(favoriteGroupType, favoriteGroupName, userId);
print(response);
} catch on DioException (e) {
print('Exception when calling FavoritesApi->clearFavoriteGroup: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
favoriteGroupType | String | The type of group to fetch, must be a valid FavoriteType. | |
favoriteGroupName | String | The name of the group to fetch, must be a name of a FavoriteGroup. | |
userId | String | Must be a valid user ID. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Favorite getFavorite(favoriteId)
Show Favorite
Return information about a specific Favorite.
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getFavoritesApi();
final String favoriteId = favoriteId_example; // String | Must be a valid favorite ID.
try {
final response = api.getFavorite(favoriteId);
print(response);
} catch on DioException (e) {
print('Exception when calling FavoritesApi->getFavorite: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
favoriteId | String | Must be a valid favorite ID. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FavoriteGroup getFavoriteGroup(favoriteGroupType, favoriteGroupName, userId)
Show Favorite Group
Fetch information about a specific favorite group.
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getFavoritesApi();
final String favoriteGroupType = favoriteGroupType_example; // String | The type of group to fetch, must be a valid FavoriteType.
final String favoriteGroupName = favoriteGroupName_example; // String | The name of the group to fetch, must be a name of a FavoriteGroup.
final String userId = userId_example; // String | Must be a valid user ID.
try {
final response = api.getFavoriteGroup(favoriteGroupType, favoriteGroupName, userId);
print(response);
} catch on DioException (e) {
print('Exception when calling FavoritesApi->getFavoriteGroup: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
favoriteGroupType | String | The type of group to fetch, must be a valid FavoriteType. | |
favoriteGroupName | String | The name of the group to fetch, must be a name of a FavoriteGroup. | |
userId | String | Must be a valid user ID. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List getFavoriteGroups(n, offset, ownerId)
List Favorite Groups
Return a list of favorite groups owned by a user. Returns the same information as getFavoriteGroups
.
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getFavoritesApi();
final int n = 56; // int | The number of objects to return.
final int offset = 56; // int | A zero-based offset from the default object sorting from where search results start.
final String ownerId = ownerId_example; // String | The owner of whoms favorite groups to return. Must be a UserID.
try {
final response = api.getFavoriteGroups(n, offset, ownerId);
print(response);
} catch on DioException (e) {
print('Exception when calling FavoritesApi->getFavoriteGroups: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
n | int | The number of objects to return. | [optional] [default to 60] |
offset | int | A zero-based offset from the default object sorting from where search results start. | [optional] |
ownerId | String | The owner of whoms favorite groups to return. Must be a UserID. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List getFavorites(n, offset, type, tag)
List Favorites
Returns a list of favorites.
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getFavoritesApi();
final int n = 56; // int | The number of objects to return.
final int offset = 56; // int | A zero-based offset from the default object sorting from where search results start.
final String type = type_example; // String | The type of favorites to return, FavoriteType.
final String tag = tag_example; // String | Tags to include (comma-separated). Any of the tags needs to be present.
try {
final response = api.getFavorites(n, offset, type, tag);
print(response);
} catch on DioException (e) {
print('Exception when calling FavoritesApi->getFavorites: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
n | int | The number of objects to return. | [optional] [default to 60] |
offset | int | A zero-based offset from the default object sorting from where search results start. | [optional] |
type | String | The type of favorites to return, FavoriteType. | [optional] |
tag | String | Tags to include (comma-separated). Any of the tags needs to be present. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Success removeFavorite(favoriteId)
Remove Favorite
Remove a favorite from your favorites list.
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getFavoritesApi();
final String favoriteId = favoriteId_example; // String | Must be a valid favorite ID.
try {
final response = api.removeFavorite(favoriteId);
print(response);
} catch on DioException (e) {
print('Exception when calling FavoritesApi->removeFavorite: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
favoriteId | String | Must be a valid favorite ID. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateFavoriteGroup(favoriteGroupType, favoriteGroupName, userId, updateFavoriteGroupRequest)
Update Favorite Group
Update information about a specific favorite group.
import 'package:vrchat_dart_generated/api.dart';
// TODO Configure API key authorization: authCookie
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
final api = VrchatDartGenerated().getFavoritesApi();
final String favoriteGroupType = favoriteGroupType_example; // String | The type of group to fetch, must be a valid FavoriteType.
final String favoriteGroupName = favoriteGroupName_example; // String | The name of the group to fetch, must be a name of a FavoriteGroup.
final String userId = userId_example; // String | Must be a valid user ID.
final UpdateFavoriteGroupRequest updateFavoriteGroupRequest = ; // UpdateFavoriteGroupRequest |
try {
api.updateFavoriteGroup(favoriteGroupType, favoriteGroupName, userId, updateFavoriteGroupRequest);
} catch on DioException (e) {
print('Exception when calling FavoritesApi->updateFavoriteGroup: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
favoriteGroupType | String | The type of group to fetch, must be a valid FavoriteType. | |
favoriteGroupName | String | The name of the group to fetch, must be a name of a FavoriteGroup. | |
userId | String | Must be a valid user ID. | |
updateFavoriteGroupRequest | UpdateFavoriteGroupRequest | [optional] |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]