Skip to content

Repository files navigation

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));

About

Sm.ms image upload sdk

Topics

Resources

Stars

9 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages