Creating a Consumer Application

Initialize a DIS client as instructed in Initializing a DIS SDK Client Instance.

Use the DIS SDK to create a consumer application.

String appName = "appName";
            var dic = new DISIngestionClient();
            var request = new CreateAppRequest
            {
//Name of the consumer application to be created.
                AppName = appName,
            };
            ResponseResult response = dic.CreateApp(request);
Console.Out.WriteLine(response);

Viewing Execution Results

Information similar to the following is displayed on the console:

{ResponseResult{status_code='201 Created', content='', errorCode='', message=''}}
Table 1 Description of response parameter ResponseResult

Parameter

Type

Description

content

String

Response body.

errorCode

String

Error code.

message

String

Error response body.

status_code

String

Status code.