postIntegrationsConnectorsByProviderDeviceWithHttpInfo method

Future<Response> postIntegrationsConnectorsByProviderDeviceWithHttpInfo(
  1. String provider,
  2. DeviceStartIn deviceStartIn
)

Begins a device sign-in and returns the code to show the user plus how to poll for completion.

Begins a device sign-in and returns the code to show the user plus how to poll for completion. KMS readiness is checked NOW rather than dead-ending the user at poll-done (connect() parity), and the per-provider connector cap is checked before the provider is called. The provider's device code is persisted only in the encrypted grants table and is NEVER returned.

Note: This method returns the HTTP Response.

Parameters:

  • String provider (required): Provider is the user-scoped provider's registry id, from the path.

  • DeviceStartIn deviceStartIn (required):

Implementation

Future<Response> postIntegrationsConnectorsByProviderDeviceWithHttpInfo(String provider, DeviceStartIn deviceStartIn,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/integrations/connectors/{provider}/device'
    .replaceAll('{provider}', provider);

  // ignore: prefer_final_locals
  Object? postBody = deviceStartIn;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];


  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}