Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

accept appengine users - #42

Open
matsuoky wants to merge 1 commit into
googlearchive:masterfrom
matsuoky:gae-http-client
Open

accept appengine users#42
matsuoky wants to merge 1 commit into
googlearchive:masterfrom
matsuoky:gae-http-client

Conversation

@matsuoky

Copy link
Copy Markdown

usage:

import (
"github.com/google/go-gcm"
"net/http"
"appengine"
"appengine/urlfetch"
)

var key = "your api key"

c := appengine.NewContext(r)
client := urlfetch.Client(c)
gcm.Client = client
m := gcm.HttpMessage{RegistrationIds: regIDs, Data: data}
_, err := gcm.SendHttp(key, m)

@matsuoky

Copy link
Copy Markdown
Author

For fix issue #12.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants