getKnowledgeConnectorsByProviderConnectWithHttpInfo method

Future<Response> getKnowledgeConnectorsByProviderConnectWithHttpInfo(
  1. String provider
)

StartConnectorOAuth returns the provider authorize URL the console opens to connect this org's account.

StartConnectorOAuth returns the provider authorize URL the console opens to connect this org's account. There is no server-side redirect — the console stays in control of the navigation. The URL carries a state this server SIGNED over the caller's validated org, so the connection the callback completes can only ever land in that org.

Note: This method returns the HTTP Response.

Parameters:

  • String provider (required): Provider is the connector to act on: github, slack, google or notion.

Implementation

Future<Response> getKnowledgeConnectorsByProviderConnectWithHttpInfo(String provider,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/knowledge/connectors/{provider}/connect'
    .replaceAll('{provider}', provider);

  // ignore: prefer_final_locals
  Object? postBody;

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

  const contentTypes = <String>[];


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