import 'package:vrchat_dart_generated/api.dart';
All URIs are relative to https://api.vrchat.cloud/api/1
Method | HTTP request | Description |
---|---|---|
getBalance | GET /user/{userId}/balance | Get Balance |
getCurrentSubscriptions | GET /auth/user/subscription | Get Current Subscriptions |
getLicenseGroup | GET /licenseGroups/{licenseGroupId} | Get License Group |
getProductListing | GET /listing/{productId} | Get Product Listing |
getProductListings | GET /user/{userId}/listings | Get User Product Listings |
getSteamTransaction | GET /Steam/transactions/{transactionId} | Get Steam Transaction |
getSteamTransactions | GET /Steam/transactions | List Steam Transactions |
getSubscriptions | GET /subscriptions | List Subscriptions |
getTiliaStatus | GET /tilia/status | Get Tilia Status |
getTiliaTos | GET /user/{userId}/tilia/tos | Get Tilia TOS Agreement Status |
getTokenBundles | GET /tokenBundles | List Token Bundles |
Balance getBalance(userId)
Get Balance
Gets the balance of a user
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 userId = userId_example; // String | Must be a valid user ID.
try {
final response = api.getBalance(userId);
print(response);
} catch on DioException (e) {
print('Exception when calling EconomyApi->getBalance: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
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 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]
ProductListing getProductListing(productId, hydrate)
Get Product Listing
Gets a product listing
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 productId = productId_example; // String | Must be a valid product ID.
final bool hydrate = true; // bool | Populates some fields and changes types of others for certain objects.
try {
final response = api.getProductListing(productId, hydrate);
print(response);
} catch on DioException (e) {
print('Exception when calling EconomyApi->getProductListing: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
productId | String | Must be a valid product ID. | |
hydrate | bool | Populates some fields and changes types of others for certain objects. | [optional] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
List getProductListings(userId, n, offset, hydrate, groupId, active)
Get User Product Listings
Gets the product listings of a given user
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 userId = userId_example; // String | Must be a valid user ID.
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 bool hydrate = true; // bool | Populates some fields and changes types of others for certain objects.
final String groupId = grp_00000000-0000-0000-0000-000000000000; // String | Must be a valid group ID.
final bool active = true; // bool | Filter for users' listings.
try {
final response = api.getProductListings(userId, n, offset, hydrate, groupId, active);
print(response);
} catch on DioException (e) {
print('Exception when calling EconomyApi->getProductListings: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
userId | String | Must be a valid user ID. | |
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] |
hydrate | bool | Populates some fields and changes types of others for certain objects. | [optional] |
groupId | String | Must be a valid group ID. | [optional] |
active | bool | Filter for users' listings. | [optional] |
- 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]
TiliaStatus getTiliaStatus()
Get Tilia Status
Gets the status of Tilia integration
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.getTiliaStatus();
print(response);
} catch on DioException (e) {
print('Exception when calling EconomyApi->getTiliaStatus: $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]
TiliaTOS getTiliaTos(userId)
Get Tilia TOS Agreement Status
Gets the status of the agreement of a user to the Tilia TOS
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 userId = userId_example; // String | Must be a valid user ID.
try {
final response = api.getTiliaTos(userId);
print(response);
} catch on DioException (e) {
print('Exception when calling EconomyApi->getTiliaTos: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
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 getTokenBundles()
List Token Bundles
Gets the list of token bundles
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.getTokenBundles();
print(response);
} catch on DioException (e) {
print('Exception when calling EconomyApi->getTokenBundles: $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]