MSDev.MetaWeBlog 0.1.0

.NET Standard 2.0
NuGet\Install-Package MSDev.MetaWeBlog -Version 0.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
dotnet add package MSDev.MetaWeBlog --version 0.1.0
<PackageReference Include="MSDev.MetaWeBlog" Version="0.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MSDev.MetaWeBlog --version 0.1.0
#r "nuget: MSDev.MetaWeBlog, 0.1.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install MSDev.MetaWeBlog as a Cake Addin
#addin nuget:?package=MSDev.MetaWeBlog&version=0.1.0

// Install MSDev.MetaWeBlog as a Cake Tool
#tool nuget:?package=MSDev.MetaWeBlog&version=0.1.0

MetaWeBlog.Cnblogs

Cnblogs MetaWeBlog,博客园博客同步迁移库。

可通过该类库管理博客园中的博客。或完成相关同步或迁移的功能。

注意事项

博客园新增博客间隔最少30秒。

使用示例

    static void Main(string[] args)
    {

        var option = new CnBlogsOption("blogname", "username", "password");
        var client = new Client(option);

        // 获取你的blogId
        client.GetUsersBlogs();
        // 获取分类
        var categories = client.GetCategories();
        // 调用添加博客方法,这里是写分类名称,而不是分类的id,具体值根据上一步获取的分类信息中提取。
        var addToCategories = new List<string> { "[网站分类].Net" };
        // 发布新的文章
        var result = client.NewPost("title", "description", addToCategories, DateTime.Now, true);

        Console.WriteLine(result);

        Console.ReadLine();
    }

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.1.0 746 10/12/2018

Cnblogs MetaWeBlog,博客园博客同步迁移库。
可通过该类库管理博客园中的博客。或完成相关同步或迁移的功能。