import 'package:vrchat_dart_generated/api.dart';
All URIs are relative to https://api.vrchat.cloud/api/1
Method | HTTP request | Description |
---|---|---|
getCurrentSubscriptions | GET /auth/user/subscription | Get Current Subscriptions |
getLicenseGroup | GET /licenseGroups/{licenseGroupId} | Get License Group |
getSteamTransaction | GET /Steam/transactions/{transactionId} | Get Steam Transaction |
getSteamTransactions | GET /Steam/transactions | List Steam Transactions |
getSubscriptions | GET /subscriptions | List Subscriptions |
List getCurrentSubscriptions()
Get Current Subscriptions
Get a list of all current user subscriptions.
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().getEconomyApi();
try {
final response = api.getCurrentSubscriptions();
print(response);
} catch on DioException (e) {
print('Exception when calling EconomyApi->getCurrentSubscriptions: $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]
LicenseGroup getLicenseGroup(licenseGroupId)
Get License Group
Get a single License Group by given ID.
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().getEconomyApi();
final String licenseGroupId = licenseGroupId_example; // String | Must be a valid license group ID.
try {
final response = api.getLicenseGroup(licenseGroupId);
print(response);
} catch on DioException (e) {
print('Exception when calling EconomyApi->getLicenseGroup: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
licenseGroupId | String | Must be a valid license group ID. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Transaction getSteamTransaction(transactionId)
Get Steam Transaction
Get a single Steam transactions by ID. This returns the exact same information as getSteamTransactions
, so no point in using this endpoint.
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().getEconomyApi();
final String transactionId = transactionId_example; // String | Must be a valid transaction ID.
try {
final response = api.getSteamTransaction(transactionId);
print(response);
} catch on DioException (e) {
print('Exception when calling EconomyApi->getSteamTransaction: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
transactionId | String | Must be a valid transaction ID. |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List getSteamTransactions()
List Steam Transactions
Get all own Steam transactions.
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().getEconomyApi();
try {
final response = api.getSteamTransactions();
print(response);
} catch on DioException (e) {
print('Exception when calling EconomyApi->getSteamTransactions: $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]
List getSubscriptions()
List Subscriptions
List all existing Subscriptions. For example, "vrchatplus-monthly" and "vrchatplus-yearly".
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().getEconomyApi();
try {
final response = api.getSubscriptions();
print(response);
} catch on DioException (e) {
print('Exception when calling EconomyApi->getSubscriptions: $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]