static void Main(string[] args) { // Services currently support North China-Beijing 1 (cn-north-1), Asia Pacific-Hong Kong (ap-southeast-1) String regionName = "cn-north-1"; String username = "******"; String password = "******"; String domainName = "*******"; // domain names for image service String IMAGE_ENDPOINT = Image.getEndponit(regionName); // domain names for moderation service String MODERATION_ENDPOINT = Moderation.getEndponit(regionName); // domain names for tts service String TTS_ENDPOINT = "sis.cn-north-1.myhuaweicloud.com"; // domain names for asr service String ASR_ENDPOINT = "sis.cn-north-1.myhuaweicloud.com"; // get token domain name String IAM_ENPOINT = "iam.cn-north-1.myhuaweicloud.com"; String token = Authentication.GetToken(username, domainName, password, regionName, IAM_ENPOINT); // image tagging service example ImageTagging(token, IMAGE_ENDPOINT); // asr bgm service example AsrBgm(token, IMAGE_ENDPOINT); // celebrity recognition service example CelebrityRecognition(token, IMAGE_ENDPOINT); // dark enhance service example DarkEnhance(token, IMAGE_ENDPOINT); // image defog detect service example ImageDefog(token, IMAGE_ENDPOINT); // image recapture detect service example RecaptureDetect(token, IMAGE_ENDPOINT); // image super resolution service example SuperResolution(token, IMAGE_ENDPOINT); // distortion correction service example DistortionCorrect(token, MODERATION_ENDPOINT); // clarity detect service example ClarityDetect(token, MODERATION_ENDPOINT); // image anti p**n service example AntiPorn(token, MODERATION_ENDPOINT); // image content detect service example ImageContent(token, MODERATION_ENDPOINT); // moderation text detect service example ModerationText(token, MODERATION_ENDPOINT); // moderation video service example ModerationVideo(token, MODERATION_ENDPOINT); // image content batch jobs service example ImageContentBatchJobs(token, MODERATION_ENDPOINT); // image content batch service example ImageContentBatch(token, MODERATION_ENDPOINT); // asr sentence service example AsrSentence(token, ASR_ENDPOINT); // long sentence service example LongSentence(token, ASR_ENDPOINT); // text to speech service example Tts(token, TTS_ENDPOINT); }