WilderMinds.MetaWeblog 5.1.3
WilderMinds.MetaWeblog
Project Status:
To install, use the Nuget "WilderMinds.MetaWeblog":
PM> Install-Package WilderMinds.MetaWeblog
This project is an ASP.NET Core 2.0 Middleware component to support the MetaWeblog API that WordPress and Windows LiveWriter uses to support adding and editing of content in blogs.
To support MetaWeblog, you must first create a class that implements the IMetaWeblogProvider interface:
public class TestMetaWeblogService : IMetaWeblogProvider
{
public async Task<UserInfo> GetUserInfoAsync(string key, string username, string password)
{
throw new NotImplementedException();
}
public async Task<BlogInfo[]> GetUsersBlogsAsync(string key, string username, string password)
{
throw new NotImplementedException();
}
public async Task<Post> GetPostAsync(string postid, string username, string password)
{
throw new NotImplementedException();
}
public async Task<Post[]> GetRecentPostsAsync(string blogid, string username, string password, int numberOfPosts)
{
throw new NotImplementedException();
}
public async Task<string> AddPostAsync(string blogid, string username, string password, Post post, bool publish)
{
throw new NotImplementedException();
}
public async Task<bool> DeletePostAsync(string key, string postid, string username, string password, bool publish)
{
throw new NotImplementedException();
}
public async Task<bool> EditPostAsync(string postid, string username, string password, Post post, bool publish)
{
throw new NotImplementedException();
}
public async Task<CategoryInfo[]> GetCategoriesAsync(string blogid, string username, string password)
{
throw new NotImplementedException();
}
public async Task<MediaObjectInfo> NewMediaObjectAsync(string blogid, string username, string password, MediaObject mediaObject)
{
throw new NotImplementedException();
}
public async Task<int> AddCategoryAsync(string key, string username, string password, NewCategory category)
{
throw new NotImplementedException();
}
public Task<Tag[]> GetTagsAsync(string blogid, string username, string password)
{
throw new NotImplementedException();
}
public Page GetPage(string blogid, string pageid, string username, string password)
{
throw new NotImplementedException();
}
public Page[] GetPages(string blogid, string username, string password, int numPages)
{
throw new NotImplementedException();
}
public Author[] GetAuthors(string blogid, string username, string password)
{
throw new NotImplementedException();
}
public string AddPage(string blogid, string username, string password, Page page, bool publish)
{
throw new NotImplementedException();
}
public bool EditPage(string blogid, string pageid, string username, string password, Page page, bool publish)
{
throw new NotImplementedException();
}
public bool DeletePage(string blogid, string username, string password, string pageid)
{
throw new NotImplementedException();
}
}
Once you've implemented the class, you can register the middleware by first adding MetaWeblog in ConfigureServices supplying the name of the implemented service class:
public void ConfigureServices(IServiceCollection svcs)
{
//...
// Supporting Live Writer (MetaWeblogAPI)
svcs.AddMetaWeblog<TestMetaWeblogService>();
//...
}
Finally, you have to add MetaWeblog in the Configure call to specify the endpoint to listen on when waiting for the MetaWeblog calls:
public void Configure(IApplicationBuilder app,
ILoggerFactory loggerFactory,
WilderInitializer initializer)
{
//...
// Support MetaWeblog API
app.UseMetaWeblog("/livewriter");
//...
}
This simply handles the routing to your methods. It does not implement the service at all.
Showing the top 20 packages that depend on WilderMinds.MetaWeblog.
Packages | Downloads |
---|---|
MoongladePure.Web
Nuget package of 'Web' provided by MoongladePure
|
9 |
MoongladePure.Web
Nuget package of 'Web' provided by MoongladePure
|
7 |
MoongladePure.Web
Nuget package of 'Web' provided by MoongladePure
|
6 |
MoongladePure.Web
Nuget package of 'Web' provided by MoongladePure
|
5 |
.NET Standard 2.1
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.0)
- System.Collections (>= 4.3.0)
- System.Reflection.Extensions (>= 4.3.0)
- System.Text.Encodings.Web (>= 8.0.0)
- System.Text.RegularExpressions (>= 4.3.1)
- System.Xml.XDocument (>= 4.3.0)
Version | Downloads | Last updated |
---|---|---|
5.1.3 | 9 | 04/29/2024 |
5.1.2 | 4 | 04/29/2024 |
5.1.1 | 8 | 04/29/2024 |
5.1.0 | 8 | 03/29/2024 |
5.0.0 | 5 | 03/29/2024 |
3.1.1 | 7 | 03/29/2024 |
3.1.0 | 6 | 03/29/2024 |
2.0.1 | 7 | 03/29/2024 |
2.0.0 | 5 | 03/29/2024 |
1.2.3 | 7 | 03/29/2024 |
1.2.2 | 6 | 03/29/2024 |
1.2.1 | 6 | 03/29/2024 |
1.2.0 | 6 | 03/29/2024 |
1.1.0 | 7 | 03/29/2024 |
1.0.2 | 6 | 03/29/2024 |
1.0.1-rc2 | 6 | 03/29/2024 |
1.0.0-rc2 | 7 | 03/29/2024 |
0.4.0-beta | 6 | 03/29/2024 |
0.3.1-beta | 8 | 03/29/2024 |
0.3.0-beta | 6 | 03/29/2024 |
0.2.6-beta | 5 | 03/29/2024 |
0.2.5-beta | 7 | 03/29/2024 |
0.2.4-beta | 6 | 03/29/2024 |
0.2.3 | 6 | 03/29/2024 |
0.2.2 | 8 | 03/29/2024 |
0.2.1-beta | 5 | 03/29/2024 |
0.1.1-beta | 7 | 03/29/2024 |
0.1.0-beta | 6 | 03/29/2024 |
0.0.3-beta | 6 | 03/29/2024 |
0.0.2-beta | 6 | 03/29/2024 |
0.0.1-alpha | 7 | 03/29/2024 |