Skip to content

Commit cbb8f83

Browse files
committed
1 parent 85bc0fb commit cbb8f83

File tree

6 files changed

+492
-9
lines changed

6 files changed

+492
-9
lines changed

vrchat_dart_generated/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,9 @@ Class | Method | HTTP request | Description
189189
[*FilesApi*](doc/FilesApi.md) | [**getFileDataUploadStatus**](doc/FilesApi.md#getfiledatauploadstatus) | **GET** /file/{fileId}/{versionId}/{fileType}/status | Check FileData Upload Status
190190
[*FilesApi*](doc/FilesApi.md) | [**getFiles**](doc/FilesApi.md#getfiles) | **GET** /files | List Files
191191
[*FilesApi*](doc/FilesApi.md) | [**startFileDataUpload**](doc/FilesApi.md#startfiledataupload) | **PUT** /file/{fileId}/{versionId}/{fileType}/start | Start FileData Upload
192+
[*FilesApi*](doc/FilesApi.md) | [**uploadGalleryImage**](doc/FilesApi.md#uploadgalleryimage) | **POST** /gallery | Upload gallery image
193+
[*FilesApi*](doc/FilesApi.md) | [**uploadIcon**](doc/FilesApi.md#uploadicon) | **POST** /icon | Upload icon
194+
[*FilesApi*](doc/FilesApi.md) | [**uploadImage**](doc/FilesApi.md#uploadimage) | **POST** /file/image | Upload gallery image, icon, emoji or sticker
192195
[*FriendsApi*](doc/FriendsApi.md) | [**deleteFriendRequest**](doc/FriendsApi.md#deletefriendrequest) | **DELETE** /user/{userId}/friendRequest | Delete Friend Request
193196
[*FriendsApi*](doc/FriendsApi.md) | [**friend**](doc/FriendsApi.md#friend) | **POST** /user/{userId}/friendRequest | Send Friend Request
194197
[*FriendsApi*](doc/FriendsApi.md) | [**getFriendStatus**](doc/FriendsApi.md#getfriendstatus) | **GET** /user/{userId}/friendStatus | Check Friend Status

vrchat_dart_generated/doc/File.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import 'package:vrchat_dart_generated/api.dart';
88
## Properties
99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11+
**animationStyle** | **String** | | [optional]
12+
**maskTag** | **String** | | [optional]
1113
**extension_** | **String** | |
1214
**id** | **String** | |
1315
**mimeType** | [**MIMEType**](MIMEType.md) | |

vrchat_dart_generated/doc/FilesApi.md

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ Method | HTTP request | Description
1919
[**getFileDataUploadStatus**](FilesApi.md#getfiledatauploadstatus) | **GET** /file/{fileId}/{versionId}/{fileType}/status | Check FileData Upload Status
2020
[**getFiles**](FilesApi.md#getfiles) | **GET** /files | List Files
2121
[**startFileDataUpload**](FilesApi.md#startfiledataupload) | **PUT** /file/{fileId}/{versionId}/{fileType}/start | Start FileData Upload
22+
[**uploadGalleryImage**](FilesApi.md#uploadgalleryimage) | **POST** /gallery | Upload gallery image
23+
[**uploadIcon**](FilesApi.md#uploadicon) | **POST** /icon | Upload icon
24+
[**uploadImage**](FilesApi.md#uploadimage) | **POST** /file/image | Upload gallery image, icon, emoji or sticker
2225

2326

2427
# **createFile**
@@ -518,3 +521,150 @@ Name | Type | Description | Notes
518521

519522
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
520523

524+
# **uploadGalleryImage**
525+
> File uploadGalleryImage(file)
526+
527+
Upload gallery image
528+
529+
Upload a gallery image
530+
531+
### Example
532+
```dart
533+
import 'package:vrchat_dart_generated/api.dart';
534+
// TODO Configure API key authorization: authCookie
535+
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
536+
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
537+
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
538+
539+
final api = VrchatDartGenerated().getFilesApi();
540+
final MultipartFile file = BINARY_DATA_HERE; // MultipartFile | The binary blob of the png file.
541+
542+
try {
543+
final response = api.uploadGalleryImage(file);
544+
print(response);
545+
} catch on DioException (e) {
546+
print('Exception when calling FilesApi->uploadGalleryImage: $e\n');
547+
}
548+
```
549+
550+
### Parameters
551+
552+
Name | Type | Description | Notes
553+
------------- | ------------- | ------------- | -------------
554+
**file** | **MultipartFile**| The binary blob of the png file. |
555+
556+
### Return type
557+
558+
[**File**](File.md)
559+
560+
### Authorization
561+
562+
[authCookie](../README.md#authCookie)
563+
564+
### HTTP request headers
565+
566+
- **Content-Type**: multipart/form-data
567+
- **Accept**: application/json
568+
569+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
570+
571+
# **uploadIcon**
572+
> File uploadIcon(file)
573+
574+
Upload icon
575+
576+
Upload an icon
577+
578+
### Example
579+
```dart
580+
import 'package:vrchat_dart_generated/api.dart';
581+
// TODO Configure API key authorization: authCookie
582+
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
583+
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
584+
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
585+
586+
final api = VrchatDartGenerated().getFilesApi();
587+
final MultipartFile file = BINARY_DATA_HERE; // MultipartFile | The binary blob of the png file.
588+
589+
try {
590+
final response = api.uploadIcon(file);
591+
print(response);
592+
} catch on DioException (e) {
593+
print('Exception when calling FilesApi->uploadIcon: $e\n');
594+
}
595+
```
596+
597+
### Parameters
598+
599+
Name | Type | Description | Notes
600+
------------- | ------------- | ------------- | -------------
601+
**file** | **MultipartFile**| The binary blob of the png file. |
602+
603+
### Return type
604+
605+
[**File**](File.md)
606+
607+
### Authorization
608+
609+
[authCookie](../README.md#authCookie)
610+
611+
### HTTP request headers
612+
613+
- **Content-Type**: multipart/form-data
614+
- **Accept**: application/json
615+
616+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
617+
618+
# **uploadImage**
619+
> File uploadImage(file, tag, animationStyle, maskTag)
620+
621+
Upload gallery image, icon, emoji or sticker
622+
623+
Upload an image, which can be an icon, gallery image, sticker or emoji
624+
625+
### Example
626+
```dart
627+
import 'package:vrchat_dart_generated/api.dart';
628+
// TODO Configure API key authorization: authCookie
629+
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKey = 'YOUR_API_KEY';
630+
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
631+
//defaultApiClient.getAuthentication<ApiKeyAuth>('authCookie').apiKeyPrefix = 'Bearer';
632+
633+
final api = VrchatDartGenerated().getFilesApi();
634+
final MultipartFile file = BINARY_DATA_HERE; // MultipartFile | The binary blob of the png file.
635+
final String tag = tag_example; // String | Needs to be either icon, gallery, sticker or emoji
636+
final String animationStyle = animationStyle_example; // String | Animation style for sticker, required for sticker.
637+
final String maskTag = maskTag_example; // String | Mask of the sticker, optional for sticker.
638+
639+
try {
640+
final response = api.uploadImage(file, tag, animationStyle, maskTag);
641+
print(response);
642+
} catch on DioException (e) {
643+
print('Exception when calling FilesApi->uploadImage: $e\n');
644+
}
645+
```
646+
647+
### Parameters
648+
649+
Name | Type | Description | Notes
650+
------------- | ------------- | ------------- | -------------
651+
**file** | **MultipartFile**| The binary blob of the png file. |
652+
**tag** | **String**| Needs to be either icon, gallery, sticker or emoji |
653+
**animationStyle** | **String**| Animation style for sticker, required for sticker. | [optional]
654+
**maskTag** | **String**| Mask of the sticker, optional for sticker. | [optional]
655+
656+
### Return type
657+
658+
[**File**](File.md)
659+
660+
### Authorization
661+
662+
[authCookie](../README.md#authCookie)
663+
664+
### HTTP request headers
665+
666+
- **Content-Type**: multipart/form-data
667+
- **Accept**: application/json
668+
669+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
670+

0 commit comments

Comments
 (0)