-
-
Notifications
You must be signed in to change notification settings - Fork 313
Pages
Joshua Harms edited this page Dec 20, 2023
·
1 revision
A Page
represents a web page on the merchant's Shopify storefront.
var service = new PageService(myShopifyUrl, shopAccessToken);
var page = new Page()
{
CreatedAt = DateTime.UtcNow,
Title = "Burton Custom Freestlye 151",
BodyHtml = "<strong>Good snowboard!</strong>",
};
page = await service.CreateAsync(page);
var service = new PageService(myShopifyUrl, shopAccessToken);
var count = await service.CountAsync();
var service = new PageService(myShopifyUrl, shopAccessToken);
var pages = await service.ListAsync();
var service = new PageService(myShopifyUrl, shopAccessToken);
var page = await service.GetAsync(pageId);
var service = new PageService(myShopifyUrl, shopAccessToken);
var page = await service.UpdateAsync(pageId, new Page()
{
Title = "My new page title"
});
var service = new PageService(myShopifyUrl, shopAccessToken);
await service.DeleteAsync(pageId);