C# Class ShopifySharp.ShopifyBlogService

A service for interacting with a store's blogs (not blog posts).
Inheritance: ShopifySharp.ShopifyService
Mostrar archivo Open project: nozzlegear/ShopifySharp

Public Methods

Method Description
CountAsync ( ) : Task

Gets a count of all blogs.

CreateAsync ( ShopifyBlog blog, IEnumerable metafields = null ) : Task

Creates a new blog.

DeleteAsync ( long id ) : System.Threading.Tasks.Task

Deletes a blog with the given id.

GetAsync ( long id ) : Task

Gets a blog with the given id.

ListAsync ( long sinceId = null, string handle = null, string fields = null ) : Task>

Gets a list of all blogs.

ShopifyBlogService ( string myShopifyUrl, string shopAccessToken ) : System.Collections.Generic

Creates a new instance of ShopifyBlogService.

UpdateAsync ( ShopifyBlog blog, IEnumerable metafields = null ) : Task

Updates a blog.

Method Details

CountAsync() public method

Gets a count of all blogs.
public CountAsync ( ) : Task
return Task

CreateAsync() public method

Creates a new blog.
public CreateAsync ( ShopifyBlog blog, IEnumerable metafields = null ) : Task
blog ShopifyBlog The blog being created. Id should be null.
metafields IEnumerable Optional metafield data that can be returned by the .
return Task

DeleteAsync() public method

Deletes a blog with the given id.
public DeleteAsync ( long id ) : System.Threading.Tasks.Task
id long The id of the blog you want to delete.
return System.Threading.Tasks.Task

GetAsync() public method

Gets a blog with the given id.
public GetAsync ( long id ) : Task
id long The id of the blog you want to retrieve.
return Task

ListAsync() public method

Gets a list of all blogs.
public ListAsync ( long sinceId = null, string handle = null, string fields = null ) : Task>
sinceId long Restrict results to after the specified ID
handle string Filter by Blog handle
fields string comma-separated list of fields to include in the response
return Task>

ShopifyBlogService() public method

Creates a new instance of ShopifyBlogService.
public ShopifyBlogService ( string myShopifyUrl, string shopAccessToken ) : System.Collections.Generic
myShopifyUrl string The shop's *.myshopify.com URL.
shopAccessToken string An API access token for the shop.
return System.Collections.Generic

UpdateAsync() public method

Updates a blog.
public UpdateAsync ( ShopifyBlog blog, IEnumerable metafields = null ) : Task
blog ShopifyBlog The updated blog. Id should not be null.
metafields IEnumerable Optional metafield data that can be returned by the .
return Task