https://github.com/itschip/expogo
Expo API wrapper for Go
https://github.com/itschip/expogo
Last synced: about 1 year ago
JSON representation
Expo API wrapper for Go
- Host: GitHub
- URL: https://github.com/itschip/expogo
- Owner: itschip
- Created: 2023-01-11T16:18:09.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-14T22:06:12.000Z (over 3 years ago)
- Last Synced: 2025-06-10T05:41:24.508Z (about 1 year ago)
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ExpoGO
```
go get github.com/itschip/expogo
```
## Example
```go
package main
import (
"log"
"github.com/itschip/expogo"
)
func main() {
client := expogo.NewExpoClient(nil)
tickets, err := client.SendPushNotification(&expogo.Notification{
To: []string{"TOKEN_OR_TOKENS"},
Title: "Hello World",
Body: "This is a test notification",
Priority: expogo.HighPriority,
})
if err != nil {
log.Println(err.Error())
}
for _, ticket := range tickets {
log.Println(ticket.ID)
if ticket.Status == expogo.ReceiptResponseError {
log.Println(ticket.Details.Error)
}
}
}
```