Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 699 Bytes

README.md

File metadata and controls

30 lines (20 loc) · 699 Bytes

Sm.ms

Build NuGet

Getting Started

NuGet install:

dotnet add package smms 

Create a Smms object and set the api token

using Sm.ms

            var smms = new Smms("xxx");

And you can generate the api token form https://sm.ms/home/apitoken

And then you can upload the image and receive the result string

            var file = new FileInfo(@"F:\lindexi\logo.png");
            Console.WriteLine(await smms.UploadImage(file.OpenRead(), file.Name));