C# 클래스 ShopifySharp.ShopifyBlogService

A service for interacting with a store's blogs (not blog posts).
상속: ShopifySharp.ShopifyService
파일 보기 프로젝트 열기: nozzlegear/ShopifySharp

공개 메소드들

메소드 설명
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.

메소드 상세

CountAsync() 공개 메소드

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

CreateAsync() 공개 메소드

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 .
리턴 Task

DeleteAsync() 공개 메소드

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.
리턴 System.Threading.Tasks.Task

GetAsync() 공개 메소드

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

ListAsync() 공개 메소드

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
리턴 Task>

ShopifyBlogService() 공개 메소드

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.
리턴 System.Collections.Generic

UpdateAsync() 공개 메소드

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 .
리턴 Task