postIntegrationsConnectorsByProviderCredentialWithHttpInfo method
Future<Response>
postIntegrationsConnectorsByProviderCredentialWithHttpInfo(
- String provider,
- CredentialIn credentialIn
Is the direct intake path: a customer-held token/setup-token (Verify) or an externally obtained OAuth bundle from the CLI's local PKCE (Adopt).
Is the direct intake path: a customer-held token/setup-token (Verify) or an externally obtained OAuth bundle from the CLI's local PKCE (Adopt). ALWAYS verify-before-store: a bad credential is refused and NOTHING is persisted (connectByCredential's fail-closed order).
Note: This method returns the HTTP Response.
Parameters:
-
String provider (required): Provider is the user-scoped provider's registry id, from the path.
-
CredentialIn credentialIn (required):
Implementation
Future<Response> postIntegrationsConnectorsByProviderCredentialWithHttpInfo(String provider, CredentialIn credentialIn,) async {
// ignore: prefer_const_declarations
final path = r'/v1/integrations/connectors/{provider}/credential'
.replaceAll('{provider}', provider);
// ignore: prefer_final_locals
Object? postBody = credentialIn;
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,
);
}