Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/r0busta/go-shopify-graphql
Shopify GraphQL client written in Go
https://github.com/r0busta/go-shopify-graphql
graphql shopify shopify-api
Last synced: 5 days ago
JSON representation
Shopify GraphQL client written in Go
- Host: GitHub
- URL: https://github.com/r0busta/go-shopify-graphql
- Owner: r0busta
- License: mit
- Created: 2019-12-25T14:02:08.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-12-29T13:18:38.000Z (about 1 month ago)
- Last Synced: 2025-01-30T14:20:10.220Z (12 days ago)
- Topics: graphql, shopify, shopify-api
- Language: Go
- Homepage:
- Size: 133 KB
- Stars: 33
- Watchers: 1
- Forks: 33
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-shopify-graphql
A simple client using the Shopify GraphQL Admin API.
## Getting started
Hello World example
### 1. Setup
```bash
export STORE_API_KEY=
export STORE_PASSWORD=
export STORE_NAME=
```### 2. Program
```go
package mainimport (
"context"
"fmt"shopify "github.com/r0busta/go-shopify-graphql/v9"
)func main() {
// Create client
client := shopify.NewDefaultClient()// Get all collections
collections, err := client.Collection.ListAll(context.Background())
if err != nil {
panic(err)
}// Print out the result
for _, c := range collections {
fmt.Println(c.Handle)
}
}
```### 3. Run
```bash
go run .
```