import 'package:cloudflare_dart/api.dart';All URIs are relative to https://api.cloudflare.com/client/v4
| Method | HTTP request | Description |
|---|---|---|
| userSInvitesInvitationDetails | GET /user/invites/{invite_id} | Invitation Details |
| userSInvitesListInvitations | GET /user/invites | List Invitations |
| userSInvitesRespondToInvitation | PATCH /user/invites/{invite_id} | Respond to Invitation |
IamSingleInviteResponse userSInvitesInvitationDetails(inviteId)
Invitation Details
Gets the details of an invitation.
import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';
final api = CloudflareDart().getUsersInvitesApi();
final String inviteId = inviteId_example; // String |
try {
final response = api.userSInvitesInvitationDetails(inviteId);
print(response);
} catch on DioException (e) {
print('Exception when calling UsersInvitesApi->userSInvitesInvitationDetails: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| inviteId | String |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
IamSchemasCollectionInviteResponse userSInvitesListInvitations()
List Invitations
Lists all invitations associated with my user.
import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';
final api = CloudflareDart().getUsersInvitesApi();
try {
final response = api.userSInvitesListInvitations();
print(response);
} catch on DioException (e) {
print('Exception when calling UsersInvitesApi->userSInvitesListInvitations: $e\n');
}This endpoint does not need any parameter.
IamSchemasCollectionInviteResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
IamSingleInviteResponse userSInvitesRespondToInvitation(inviteId, userSInvitesRespondToInvitationRequest)
Respond to Invitation
Responds to an invitation.
import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';
final api = CloudflareDart().getUsersInvitesApi();
final String inviteId = inviteId_example; // String |
final UserSInvitesRespondToInvitationRequest userSInvitesRespondToInvitationRequest = ; // UserSInvitesRespondToInvitationRequest |
try {
final response = api.userSInvitesRespondToInvitation(inviteId, userSInvitesRespondToInvitationRequest);
print(response);
} catch on DioException (e) {
print('Exception when calling UsersInvitesApi->userSInvitesRespondToInvitation: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| inviteId | String | ||
| userSInvitesRespondToInvitationRequest | UserSInvitesRespondToInvitationRequest |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]