An HTTP implementation of the shopify package.
Install the module using
go get -u github.com/MOHC-LTD/httpshopifyIf directly talking to a Shopify API then use the NewShop constructor. This
contructor will automatically generate the URL of the shop from the shop name.
func main() {
shop := httpshopify.NewShop("shop-name", "shopify-access-token")
order, err := shop.Orders().Get("184190283")
}You can also specify a Shopify plus shop which will used the increased rate limit.
func main() {
shop := httpshopify.NewPlusShop("shop-name", "shopify-access-token")
order, err := shop.Orders().Get("184190283")
}If talking to a custom shopify API, specify the entire URL with the NewCustomShop contructor.
func main() {
shop := httpshopify.NewCustomShop("https://myhost.com", "shopify-access-token", shopify.IsPlus)
order, err := shop.Orders().Get("184190283")
}Something missing or not working as expected? See our contribution guide.