mirror of
https://bitbucket.org/myhomie/mycorerepository.git
synced 2025-12-06 17:51:20 +00:00
58 lines
1.4 KiB
Markdown
58 lines
1.4 KiB
Markdown
# mycoreapi.api.GoogleApi
|
|
|
|
## Load the API package
|
|
```dart
|
|
import 'package:mycoreapi/api.dart';
|
|
```
|
|
|
|
All URIs are relative to *http://localhost:25049*
|
|
|
|
Method | HTTP request | Description
|
|
------------- | ------------- | -------------
|
|
[**googleCreate**](GoogleApi.md#googlecreate) | **POST** /google |
|
|
|
|
|
|
# **googleCreate**
|
|
> MultipartFile googleCreate(googleAuthModel)
|
|
|
|
|
|
|
|
### Example
|
|
```dart
|
|
import 'package:mycoreapi/api.dart';
|
|
// TODO Configure OAuth2 access token for authorization: bearer
|
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
|
|
|
final api_instance = GoogleApi();
|
|
final googleAuthModel = GoogleAuthModel(); // GoogleAuthModel |
|
|
|
|
try {
|
|
final result = api_instance.googleCreate(googleAuthModel);
|
|
print(result);
|
|
} catch (e) {
|
|
print('Exception when calling GoogleApi->googleCreate: $e\n');
|
|
}
|
|
```
|
|
|
|
### Parameters
|
|
|
|
Name | Type | Description | Notes
|
|
------------- | ------------- | ------------- | -------------
|
|
**googleAuthModel** | [**GoogleAuthModel**](GoogleAuthModel.md)| |
|
|
|
|
### Return type
|
|
|
|
[**MultipartFile**](MultipartFile.md)
|
|
|
|
### Authorization
|
|
|
|
[bearer](../README.md#bearer)
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: application/json
|
|
- **Accept**: application/octet-stream
|
|
|
|
[[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)
|
|
|