Skip to content

dogenzaka/goparse

Repository files navigation

goparse

Build Status Coverage License

Goparse is a client library to access Parse REST API.

Installation

go get github.com/dogenzaka/goparse

Quick start

To create a session from default client,

import(
  "github.com/dogenzaka/goparse"
)

func main() {

  parseSession := goparse.NewSession("SESSION_TOKEN")
  me, err := parseSession.GetMe()
  ..

}

Custom Client

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()
..

Environment variables

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

License

Goparse is licensed under the MIT.

About

A Go client for the Parse REST API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages