mirror of
https://github.com/iminet/dev.git
synced 2026-10-15 01:24:54 +02:00
Added ImgBB Test & Github Test applications with using environment variables
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
using System.Collections;
|
||||
|
||||
namespace Iminetsoft.Dev.ImgBBTest
|
||||
{
|
||||
public static class Program
|
||||
@@ -8,6 +10,10 @@ namespace Iminetsoft.Dev.ImgBBTest
|
||||
|
||||
Console.WriteLine("IMGBB Test Application");
|
||||
|
||||
Environment.GetEnvironmentVariables().Cast<DictionaryEntry>().OrderBy(x => x.Key).ToList().ForEach(x => Console.WriteLine($"\t{x.Key} :: {x.Value}"));
|
||||
|
||||
return;
|
||||
|
||||
var imgbb_token = Environment.GetEnvironmentVariable("IMGBB_TOKEN") ?? args.token ?? args.t;
|
||||
var imgbb = new ImgBBApi(imgbb_token);
|
||||
var uploaded = new List<string>();
|
||||
|
||||
Reference in New Issue
Block a user