Help us shape the future of Go! Take the 2026 Go Developer Survey

gogigya

package module
v0.0.0-...-2e523b8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2015 License: MIT Imports: 13 Imported by: 0

README

gogigya

Bindings to the Gigya REST API http://developers.gigya.com/037_API_reference

Included:

  • Signing api keys, secrets, and all the machinery
  • Generic request/response binding
  • Support for User/Account schema
  • Demo application for reporting on users
  • Demo application making generic api calls

Documentation

godoc

Installation

# install the library:
go get github.com/shanemhansen/gogiya

// use in your .go code:
import (
     "github.com/shanemhansen/gogigya"
)

Examples

 #Add GOPATH/bin to your PATH
 go install github.com/shanemhansen/gogigya/...
 APIKEY=XXX SECRET=YYY gigdump -apiKey $APIKEY -secret $SECRET -report "UID:{{.UID}" -count 1
 APIKEY=XXX SECRET=YYY gig -apiKey $APIKEY -secret $SECRET socialize.getUserInfo UID 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApiKey *string
View Source
var Methods []string = []string{}/* 121 elements not displayed */
View Source
var SecretKey *string

Functions

func CalcOauth1BaseString

func CalcOauth1BaseString(method, uri string, secure bool, params url.Values) string

func CalcSig

func CalcSig(value, secret string) string

func GetSig

func GetSig(secret, method, uri string, useHttps bool, params url.Values) string

func Gigencode

func Gigencode(value string) string

Types

type Account

type Account struct {
	UID      string
	LoginIds LoginIds `json:loginIds`
}

type Identity

type Identity struct {
	Provider    string `json:"provider"`
	ProviderUID string `json:"providerUID"`
}

type LoginIds

type LoginIds struct {
	Emails []string `json:emails`
}

type QueryResult

type QueryResult struct {
	Results      []Account `json:"results"`
	ObjectsCount int       `json:"objectsCount"`
	TotalCount   int       `json:"totalCount"`
	StatusCode   int       `json:"statusCode"`
	ErrorCode    int       `json:"errorCode"`
	ErrorMessage string    `json:"errorMessage"`
	StatusReason string    `json:"statusReason"`
	CallId       string    `json:"callId"`
}

type Request

type Request struct {
	ApiKey    string
	SecretKey string
	Method    string
	Format    string

	Params url.Values
	// contains filtered or unexported fields
}

func New

func New(this *Request) *Request

func (*Request) Send

func (this *Request) Send() (r *http.Response, err error)

type Response

type Response struct {
	ErrorCode int
}

type User

type User struct {
	UID        string
	Identities []Identity `json:"identities"`
}

type UserList

type UserList struct {
	UserCount     int `json:"usersCount"`
	IdentityCount int `json:"identitiesCount"`
	Users         []User
}

Directories

Path Synopsis
gig is a generic command line utility for interacting with the gigya REST api http://developers.gigya.com/037_API_reference The format is: gig $method key value key value for example: gig socialize.exportUsers limit 10 the output is json
gig is a generic command line utility for interacting with the gigya REST api http://developers.gigya.com/037_API_reference The format is: gig $method key value key value for example: gig socialize.exportUsers limit 10 the output is json
gigdump is an example of using the accounts.search api with strong typing.
gigdump is an example of using the accounts.search api with strong typing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL