Pages
A Page represents a web page on the merchant’s Shopify storefront.
Creating a page
Section titled “Creating a page”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);Counting a page
Section titled “Counting a page”var service = new PageService(myShopifyUrl, shopAccessToken);var count = await service.CountAsync();Listing pages
Section titled “Listing pages”var service = new PageService(myShopifyUrl, shopAccessToken);var pages = await service.ListAsync();Retrieving a page
Section titled “Retrieving a page”var service = new PageService(myShopifyUrl, shopAccessToken);var page = await service.GetAsync(pageId);Updating a page
Section titled “Updating a page”var service = new PageService(myShopifyUrl, shopAccessToken);var page = await service.UpdateAsync(pageId, new Page(){ Title = "My new page title"});Deleting a page
Section titled “Deleting a page”var service = new PageService(myShopifyUrl, shopAccessToken);
await service.DeleteAsync(pageId);