- Notifications
You must be signed in to change notification settings - Fork0
lindexi/Sm.ms
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Build | NuGet |
---|---|
NuGet install:
dotnetadd package smms
Create a Smms object and set the api token
usingSm.msvar smms=newSmms("xxx");
And you can generate the api token formhttps://sm.ms/home/apitoken
And then you can upload the image and receive the result string
varfile=newFileInfo(@"F:\lindexi\logo.png");Console.WriteLine(awaitsmms.UploadImage(file.OpenRead(),file.Name));