Skip to content

Latest commit

 

History

History
209 lines (144 loc) · 5.88 KB

ShareApi.md

File metadata and controls

209 lines (144 loc) · 5.88 KB

kabalist_client.api.ShareApi

Load the API package

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}

deleteShares

OkDeleteShareResponse deleteShares(id)

Example

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');
}

Parameters

Name Type Description Notes
id String List ID

Return type

OkDeleteShareResponse

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getShares

OkGetSharesResponse getShares(id)

Example

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');
}

Parameters

Name Type Description Notes
id String List ID

Return type

OkGetSharesResponse

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

shareList

OkShareListResponse shareList(id, shareListRequest)

Example

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');
}

Parameters

Name Type Description Notes
id String List ID
shareListRequest ShareListRequest

Return type

OkShareListResponse

Authorization

token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

unshare

OkUnshareResponse unshare(id, account)

Example

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');
}

Parameters

Name Type Description Notes
id String List ID
account String Account ID

Return type

OkUnshareResponse

Authorization

token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]