Exemplo n.º 1
0
 public static void GetAndSetLoliconApiKey()
 {
     if (manifestRequest == null)
     {
         manifestRequest = GetManifest();
     }
     LoliconApi.SetApiKey(manifestRequest?.data?.apikey);
 }
Exemplo n.º 2
0
        private void customLoliconAPIkeyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var s = Interaction.InputBox("Please enter Lolicon API key string:", "自定义 Lolicon API 密匙");

            if (!(string.IsNullOrEmpty(s) || string.IsNullOrWhiteSpace(s)))
            {
                LoliconApi.SetApiKey(s);
            }
        }