Example #1
0
 public Task <Application> UpdateApplicationAsync(string id, CreateApplicationRequest request, Credentials creds = null)
 {
     return(ApiRequest.DoRequestWithJsonContentAsync <Application>(
                "PUT",
                ApiRequest.GetBaseUri(ApiRequest.UriType.Api, $"/v2/applications/{id}"),
                request,
                ApiRequest.AuthType.Basic,
                creds ?? Credentials
                ));
 }
Example #2
0
 public Task <Application> CreateApplicaitonAsync(CreateApplicationRequest request, Credentials creds = null)
 {
     return(ApiRequest.DoRequestWithJsonContentAsync <Application>(
                "POST",
                ApiRequest.GetBaseUri(ApiRequest.UriType.Api, "/v2/applications"),
                request,
                ApiRequest.AuthType.Basic,
                creds ?? Credentials
                ));
 }
Example #3
0
 public Application UpdateApplication(string id, CreateApplicationRequest request, Credentials creds = null)
 {
     return(UpdateApplicationAsync(id, request, creds).GetAwaiter().GetResult());
 }
Example #4
0
 public Application CreateApplicaiton(CreateApplicationRequest request, Credentials creds = null)
 {
     return(CreateApplicaitonAsync(request, creds).GetAwaiter().GetResult());
 }