Skip to content

MOHC-LTD/httpshopify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

httpshopify

An HTTP implementation of the shopify package.

Contents

Installation

Install the module using

go get -u github.com/MOHC-LTD/httpshopify

Usage

If 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")
}

How to contribute

Something missing or not working as expected? See our contribution guide.

About

No description, website, or topics provided.

Resources

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 11