Skip to content

albimcleod/gosquare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goxero

A simple go library for SquareUp Applications

Call SquareUp Connect

https://connect.squareup.com/oauth2/authorize?client_id={clientid}&scope={scope}

Connect the client

v := gosquare.NewClient(code, clientId, clientSecret)

Get an access toekn

token, merchant, expires, err := v.AccessToken()

or if you have a toekn

token, merchant, expires, err := v.RefreshToken(existingToken)

Get Locations

locations, err := v.GetLocations(tooken)

Setup Webhook

if err := v.UpdateWebHook(token, merchant, locationId, true); err != nil { service.HandleError(w, err, 422) return }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages