createOAuthApplicationWithHttpInfo method
Future<Response>
createOAuthApplicationWithHttpInfo({
- CreateOAuthApplicationRequest? createOAuthApplicationRequest,
Create an OAuth application
Creates a new OAuth application with the given name and callback URL for an instance. The callback URL must be a valid url. All URL schemes are allowed such as http://
, https://
, myapp://
, etc...
Note: This method returns the HTTP Response
.
Parameters:
- CreateOAuthApplicationRequest createOAuthApplicationRequest:
Implementation
Future<http.Response> createOAuthApplicationWithHttpInfo({
CreateOAuthApplicationRequest? createOAuthApplicationRequest,
}) async {
// ignore: prefer_const_declarations
final path = r'/oauth_applications';
// ignore: prefer_final_locals
Object? postBody = createOAuthApplicationRequest;
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,
);
}