import 'package:kabalist_client/api.dart';
All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
deleteShares | DELETE /api/share/{id} | |
getShares | GET /api/share/{id} | |
shareList | PUT /api/share/{id} | |
unshare | DELETE /api/share/{id}/{account} |
OkDeleteShareResponse deleteShares(id)
import 'package:kabalist_client/api.dart';
// TODO Configure HTTP Bearer authorization: token
// Case 1. Use String Token
//defaultApiClient.getAuthentication<HttpBearerAuth>('token').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication<HttpBearerAuth>('token').setAccessToken(yourTokenGeneratorFunction);
final api_instance = ShareApi();
final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | List ID
try {
final result = api_instance.deleteShares(id);
print(result);
} catch (e) {
print('Exception when calling ShareApi->deleteShares: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | List ID |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OkGetSharesResponse getShares(id)
import 'package:kabalist_client/api.dart';
// TODO Configure HTTP Bearer authorization: token
// Case 1. Use String Token
//defaultApiClient.getAuthentication<HttpBearerAuth>('token').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication<HttpBearerAuth>('token').setAccessToken(yourTokenGeneratorFunction);
final api_instance = ShareApi();
final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | List ID
try {
final result = api_instance.getShares(id);
print(result);
} catch (e) {
print('Exception when calling ShareApi->getShares: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | List ID |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OkShareListResponse shareList(id, shareListRequest)
import 'package:kabalist_client/api.dart';
// TODO Configure HTTP Bearer authorization: token
// Case 1. Use String Token
//defaultApiClient.getAuthentication<HttpBearerAuth>('token').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication<HttpBearerAuth>('token').setAccessToken(yourTokenGeneratorFunction);
final api_instance = ShareApi();
final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | List ID
final shareListRequest = ShareListRequest(); // ShareListRequest |
try {
final result = api_instance.shareList(id, shareListRequest);
print(result);
} catch (e) {
print('Exception when calling ShareApi->shareList: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | List ID | |
shareListRequest | ShareListRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OkUnshareResponse unshare(id, account)
import 'package:kabalist_client/api.dart';
// TODO Configure HTTP Bearer authorization: token
// Case 1. Use String Token
//defaultApiClient.getAuthentication<HttpBearerAuth>('token').setAccessToken('YOUR_ACCESS_TOKEN');
// Case 2. Use Function which generate token.
// String yourTokenGeneratorFunction() { ... }
//defaultApiClient.getAuthentication<HttpBearerAuth>('token').setAccessToken(yourTokenGeneratorFunction);
final api_instance = ShareApi();
final id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | List ID
final account = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | Account ID
try {
final result = api_instance.unshare(id, account);
print(result);
} catch (e) {
print('Exception when calling ShareApi->unshare: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
id | String | List ID | |
account | String | Account ID |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]