C# Class ShopifySharp.ShopifyBlogService

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

Méthodes publiques

Méthode 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 méthode

Gets a count of all blogs.
public CountAsync ( ) : Task
Résultat Task

CreateAsync() public méthode

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 .
Résultat Task

DeleteAsync() public méthode

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.
Résultat System.Threading.Tasks.Task

GetAsync() public méthode

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

ListAsync() public méthode

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
Résultat Task>

ShopifyBlogService() public méthode

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.
Résultat System.Collections.Generic

UpdateAsync() public méthode

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 .
Résultat Task