import 'package:vrchat_dart_generated/api.dart';
All URIs are relative to https://api.vrchat.cloud/api/1
Method | HTTP request | Description |
---|---|---|
getAssignedPermissions | GET /auth/permissions | Get Assigned Permissions |
getPermission | GET /permissions/{permissionId} | Get Permission |
List getAssignedPermissions()
Get Assigned Permissions
Returns a list of all permissions currently granted by the user. Permissions are assigned e.g. by subscribing to VRC+.
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().getPermissionsApi();
try {
final response = api.getAssignedPermissions();
print(response);
} catch on DioException (e) {
print('Exception when calling PermissionsApi->getAssignedPermissions: $e\n');
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Permission getPermission(permissionId)
Get Permission
Returns a single permission. This endpoint is pretty useless, as it returns the exact same information as /auth/permissions
.
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().getPermissionsApi();
final String permissionId = permissionId_example; // String | Must be a valid permission ID.
try {
final response = api.getPermission(permissionId);
print(response);
} catch on DioException (e) {
print('Exception when calling PermissionsApi->getPermission: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
permissionId | String | Must be a valid permission ID. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]