public object Run()
        {
            var option = new RamSortUnicodeApiOption()
            {
                RanChinese = true,
                RanEnglish = true,
                RanNumber  = true
            };

            var respone = YouzikuPlusClient.GetScopeFontFace(new RamUnicodeScopeFontApiParam()
            {
                AccessKey        = "xxx",
                UseRanFontFamily = true,
                Content          =
                    "有字库,让中文跃上云端 ",
                Option = option,
                Text   = "有字库",
                Tag    = "#yzk"
            });


            var woffRespone = YouzikuPlusClient.GetScopeWoffFontFace(new RamUnicodeScopeFontApiParam()
            {
                AccessKey        = "xxx",
                UseRanFontFamily = true,
                Content          =
                    "有字库,让中文跃上云端",
                Option = option,
                Text   = "有字库",
                Tag    = "#yzk"
            });

            return(null);
        }
예제 #2
0
        public async Task <object> Run()
        {
            var option = new RamSortUnicodeApiOption()
            {
                RanChinese = true,
                RanEnglish = true,
                RanNumber  = true
            };

            var respone = YouzikuPlusClient.GetFontFace(new RamUnicodeFontApiParam()
            {
                AccessKey        = "xxx",
                UseRanFontFamily = true,
                Content          =
                    "有字库,让中文跃上云端!",
                Option = option,
                Tag    = "#yzk"
            });


            var woffRespone = YouzikuPlusClient.GetWoffFontFace(new RamUnicodeFontApiParam()
            {
                AccessKey        = "xxx",
                UseRanFontFamily = true,
                Content          =
                    "有字库,让中文跃上云端!",
                Option = option,
                Tag    = "#yzk"
            });

            var responeAsync = await YouzikuPlusClient.GetFontFaceAsync(new RamUnicodeFontApiParam
            {
                AccessKey        = "xxx",
                UseRanFontFamily = true,
                Content          =
                    "有字库,让中文跃上云端!",
                Option = option,
                Tag    = "#yzk"
            });


            var woffResponeAsync = await YouzikuPlusClient.GetWoffFontFaceAsync(new RamUnicodeFontApiParam()
            {
                AccessKey        = "xxx",
                UseRanFontFamily = true,
                Content          =
                    "有字库,让中文跃上云端!",
                Option = option,
                Tag    = "#yzk"
            });

            return(null);
        }