Goparse is a client library to access Parse REST API.
go get github.com/dogenzaka/goparse
To create a session from default client,
import(
"github.com/dogenzaka/goparse"
)
func main() {
parseSession := goparse.NewSession("SESSION_TOKEN")
me, err := parseSession.GetMe()
..
}
To create a configured` client,
parseClient := goparse.NewClient(goparse.Config({
ApplicationId: "PARSE_APPLICATION_ID",
RestAPIKey: "PARSE_REST_API_KEY", // this is an optional parameter, but we recommand you to set it
MasterKey: "PARSE_MASTER_KEY",
EndPointURL: "PARSE_ENDPOINT_URL"
})
parseSession := parseClient.NewSession()
me, err := parseSession.GetMe()
..
The default client uses environment variables to access Parse REST API.
PARSE_APPLICATION_ID
PARSE_REST_API_KEY
(this is an optional parameter, but we recommand you to set it)PARSE_MASTER_KEY
PARSE_ENDPOINT_URL
Goparse is licensed under the MIT.