Coder Social home page Coder Social logo

wforney / metaweblog Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 37 KB

A C# implementation of the MetaWeblog API for ASP.NET Core partially based on Shawn Wildermuth's implementation found here: https://github.com/shawnwildermuth/MetaWeblog

Home Page: https://dev.azure.com/improvgroup/MetaWeblog

License: Apache License 2.0

C# 100.00%
metaweblog metaweblogapi metaweblog-api

metaweblog's Introduction

MetaWeblog

A C# implementation of the MetaWeblog API for ASP.NET Core partially based on Shawn Wildermuth's implementation.

Build status

Shawn's implementation can be found here: https://github.com/shawnwildermuth/MetaWeblog

To use this you need to implement the IMetaWeblogProvider interface...

public class MyMetaWeblogService : 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 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();
    }
  }

Then register the service and use it in your Startup.cs file:

    public void ConfigureServices(IServiceCollection svcs)
    {
        svcs.AddMetaWeblog<MyMetaWeblogService>();
    }

    public void Configure(IApplicationBuilder app)
    {
        app.UseMetaWeblog("/livewriter");
    }

metaweblog's People

Contributors

wforney avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

gachukimugo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.