C# Класс ShopifySharp.ShopifyBlogService

A service for interacting with a store's blogs (not blog posts).
Наследование: ShopifySharp.ShopifyService
Показать файл Открыть проект

Открытые методы

Метод Описание
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