Skip to content

Latest commit

 

History

History
45 lines (38 loc) · 1.27 KB

README.md

File metadata and controls

45 lines (38 loc) · 1.27 KB

groupme.go

Continuous Integration Linter

go sdk for groupme

Summary

A simple sdk for the GroupMe API with no dependencies outside of the stdlib.

Usage

Import

import "github.com/nhomble/groupme.go/groupme"

Send a message

package main 
import "github.com/nhomble/groupme.go/groupme"
func main() {
    provider := groupme.TokenProviderFromToken("... your access token with groupme ....")
    client, _ := groupme.NewClient(provider)
    client.Messages.Send(".. group id..", &groupme.SendMessageCommand{
        SourceGuid: "... guid ...",
        Text:       "Houston we have landed",
    })
}

Examples

go run examples/sendMessage.go

You'll see here that the token is pulled from disk ~/.groupme-go.prop and then we:

  • create group
  • create message
  • list messages (and print our expectation)
  • delete the group

Property file contains one field

token="your token not mine"