C# 클래스 ShopifySharp.ShopifyProductService

A service for manipulating Shopify products.
상속: ShopifySharp.ShopifyService
파일 보기 프로젝트 열기: nozzlegear/ShopifySharp

공개 메소드들

메소드 설명
CountAsync ( ShopifySharp.Filters.ShopifyProductFilter filter = null ) : Task

Gets a count of all of the shop's products.

CreateAsync ( ShopifySharp.ShopifyProduct product, ShopifySharp.ShopifyProductCreateOptions options = null ) : Task

Creates a new ShopifyProduct on the store.

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

Deletes a product with the given Id.

GetAsync ( long productId, string fields = null ) : Task

Retrieves the ShopifyProduct with the given id.

ListAsync ( ShopifySharp.Filters.ShopifyProductFilter options = null ) : Task>

Gets a list of up to 250 of the shop's products.

PublishAsync ( long id ) : Task

Publishes an unpublished ShopifyProduct.

ShopifyProductService ( string myShopifyUrl, string shopAccessToken ) : Newtonsoft.Json.Linq

Creates a new instance of ShopifyProductService.

UnpublishAsync ( long id ) : Task

Unpublishes an published ShopifyProduct.

UpdateAsync ( ShopifySharp.ShopifyProduct product ) : Task

Updates the given ShopifyProduct. Id must not be null.

메소드 상세

CountAsync() 공개 메소드

Gets a count of all of the shop's products.
public CountAsync ( ShopifySharp.Filters.ShopifyProductFilter filter = null ) : Task
filter ShopifySharp.Filters.ShopifyProductFilter
리턴 Task

CreateAsync() 공개 메소드

Creates a new ShopifyProduct on the store.
public CreateAsync ( ShopifySharp.ShopifyProduct product, ShopifySharp.ShopifyProductCreateOptions options = null ) : Task
product ShopifySharp.ShopifyProduct A new . Id should be set to null.
options ShopifySharp.ShopifyProductCreateOptions Options for creating the product.
리턴 Task

DeleteAsync() 공개 메소드

Deletes a product with the given Id.
public DeleteAsync ( long productId ) : System.Threading.Tasks.Task
productId long The product object's Id.
리턴 System.Threading.Tasks.Task

GetAsync() 공개 메소드

Retrieves the ShopifyProduct with the given id.
public GetAsync ( long productId, string fields = null ) : Task
productId long The id of the product to retrieve.
fields string A comma-separated list of fields to return.
리턴 Task

ListAsync() 공개 메소드

Gets a list of up to 250 of the shop's products.
public ListAsync ( ShopifySharp.Filters.ShopifyProductFilter options = null ) : Task>
options ShopifySharp.Filters.ShopifyProductFilter
리턴 Task>

PublishAsync() 공개 메소드

Publishes an unpublished ShopifyProduct.
public PublishAsync ( long id ) : Task
id long The product's id.
리턴 Task

ShopifyProductService() 공개 메소드

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

UnpublishAsync() 공개 메소드

Unpublishes an published ShopifyProduct.
public UnpublishAsync ( long id ) : Task
id long The product's id.
리턴 Task

UpdateAsync() 공개 메소드

Updates the given ShopifyProduct. Id must not be null.
public UpdateAsync ( ShopifySharp.ShopifyProduct product ) : Task
product ShopifySharp.ShopifyProduct The to update.
리턴 Task