C# 클래스 ShopifySharp.ShopifyArticleService

A service for manipulating a blog's articles.
상속: ShopifySharp.ShopifyService
파일 보기 프로젝트 열기: nozzlegear/ShopifySharp

공개 메소드들

메소드 설명
CountAsync ( long blogId, ShopifySharp.Filters.ShopifyPublishableCountFilter filter = null ) : Task

Gets a count of the articles belonging to the given blog.

CreateAsync ( long blogId, ShopifyArticle article, IEnumerable metafields = null ) : Task

Creates a new article on the given blog.

DeleteAsync ( long blogId, long articleId ) : System.Threading.Tasks.Task

Deletes an article with the given id.

GetAsync ( long blogId, long articleId, string fields = null ) : Task

Gets an article with the given id.

ListAsync ( long blogId, ShopifyArticleFilter filter = null ) : Task>

Gets a list of up to 250 articles belonging to the given blog.

ListAuthorsAsync ( ) : Task>

Gets a list of all article authors.

ListTagsAsync ( int popular = null, int limit = null ) : Task>

Gets a list of all article tags.

ListTagsForBlogAsync ( long blogId, int popular = null, int limit = null ) : Task>

Gets a list of all article tags for the given blog.

ShopifyArticleService ( string myShopifyUrl, string shopAccessToken ) : RestSharp

Creates a new instance of the service.

UpdateAsync ( long blogId, ShopifyArticle article, IEnumerable metafields = null ) : Task

Updates an article.

메소드 상세

CountAsync() 공개 메소드

Gets a count of the articles belonging to the given blog.
public CountAsync ( long blogId, ShopifySharp.Filters.ShopifyPublishableCountFilter filter = null ) : Task
blogId long The blog that the articles belong to.
filter ShopifySharp.Filters.ShopifyPublishableCountFilter Options for filtering the result.
리턴 Task

CreateAsync() 공개 메소드

Creates a new article on the given blog.
public CreateAsync ( long blogId, ShopifyArticle article, IEnumerable metafields = null ) : Task
blogId long The blog that the article will belong to.
article ShopifyArticle The article being created. Id should be null.
metafields IEnumerable Optional metafield data that can be returned by the .
리턴 Task

DeleteAsync() 공개 메소드

Deletes an article with the given id.
public DeleteAsync ( long blogId, long articleId ) : System.Threading.Tasks.Task
blogId long The blog that the article belongs to.
articleId long The article benig deleted.
리턴 System.Threading.Tasks.Task

GetAsync() 공개 메소드

Gets an article with the given id.
public GetAsync ( long blogId, long articleId, string fields = null ) : Task
blogId long The blog that the article belongs to.
articleId long The article's id.
fields string A comma-separated list of fields to return.
리턴 Task

ListAsync() 공개 메소드

Gets a list of up to 250 articles belonging to the given blog.
public ListAsync ( long blogId, ShopifyArticleFilter filter = null ) : Task>
blogId long The blog that the articles belong to.
filter ShopifySharp.Filters.ShopifyArticleFilter Options for filtering the result.
리턴 Task>

ListAuthorsAsync() 공개 메소드

Gets a list of all article authors.
public ListAuthorsAsync ( ) : Task>
리턴 Task>

ListTagsAsync() 공개 메소드

Gets a list of all article tags.
public ListTagsAsync ( int popular = null, int limit = null ) : Task>
popular int A flag to indicate only to a certain number of the most popular tags.
limit int The number of tags to return
리턴 Task>

ListTagsForBlogAsync() 공개 메소드

Gets a list of all article tags for the given blog.
public ListTagsForBlogAsync ( long blogId, int popular = null, int limit = null ) : Task>
blogId long The blog that the tags belong to.
popular int A flag to indicate only to a certain number of the most popular tags.
limit int The number of tags to return
리턴 Task>

ShopifyArticleService() 공개 메소드

Creates a new instance of the service.
public ShopifyArticleService ( string myShopifyUrl, string shopAccessToken ) : RestSharp
myShopifyUrl string The shop's *.myshopify.com URL.
shopAccessToken string An API access token for the shop.
리턴 RestSharp

UpdateAsync() 공개 메소드

Updates an article.
public UpdateAsync ( long blogId, ShopifyArticle article, IEnumerable metafields = null ) : Task
blogId long The blog that the article belongs to.
article ShopifyArticle The article being updated. Id should not be null.
metafields IEnumerable Optional metafield data that can be returned by the .
리턴 Task