postIntegrationsConnectorsByProviderDeviceByFlowPollWithHttpInfo method

Future<Response> postIntegrationsConnectorsByProviderDeviceByFlowPollWithHttpInfo(
  1. String provider,
  2. String flow
)

Advances a device sign-in.

Advances a device sign-in. Terminal outcomes are DATA, not errors (verifyConn {active:false} discipline) — the status set is closed: pending|connected|denied|expired. pollSlow collapses to "pending" on the wire; the raised cadence rides interval.

Note: This method returns the HTTP Response.

Parameters:

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

  • String flow (required): Flow is the id deviceStartOut returned. Expired or another user's flow is indistinguishable from an unknown one: 404.

Implementation

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

  // ignore: prefer_final_locals
  Object? postBody;

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

  const contentTypes = <String>[];


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