Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nhomble/groupme.go
go sdk for groupme
https://github.com/nhomble/groupme.go
golang-sdk groupme groupme-api sdk
Last synced: about 1 month ago
JSON representation
go sdk for groupme
- Host: GitHub
- URL: https://github.com/nhomble/groupme.go
- Owner: nhomble
- License: mit
- Created: 2020-01-02T05:36:49.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-11-24T23:41:38.000Z (about 2 years ago)
- Last Synced: 2023-07-27T22:24:30.347Z (over 1 year ago)
- Topics: golang-sdk, groupme, groupme-api, sdk
- Language: Go
- Size: 40 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# groupme.go
[![Continuous Integration](https://github.com/nhomble/groupme.go/workflows/continuous-integration/badge.svg)](https://github.com/nhomble/groupme.go/actions)
[![Linter](https://github.com/nhomble/groupme.go/workflows/Linter/badge.svg)](https://github.com/nhomble/groupme.go/actions?query=workflow%3ALinter)go sdk for groupme
## Summary
A simple sdk for the [GroupMe API](https://dev.groupme.com/) with no dependencies outside of the stdlib.## Usage
### Import
```go
import "github.com/nhomble/groupme.go/groupme"
```### Send a message
```go
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
### [Send Message](examples/sendMessage/main.go)
```sh
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 groupProperty file contains one field
```text
token="your token not mine"
```