Skip to content

A helper library for integrating the server side apps and RevenueCat webhook service

License

Notifications You must be signed in to change notification settings

dasbudget/revcatgo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

revcatgo

GoDev

Run test

A helper library for integrating the server side apps and RevenueCat webhook service

go get "github.com/iktakahiro/revcatgo@v0.5.0"

Receive webhooks

func bind(w http.ResponseWriter, r *http.Request) error {
    var webhookEvent revcatgo.WebhookEvent

    err := json.NewDecoder(r.Body).Decode(&webhookEvent)
    if err != nil {
        return err
    }
    fmt.Println(webhookEvent.Type) // e.g. "INITIAL_PURCHASE"
    return nil
}

RevenueCat webhooks specification

See the official document.

About

A helper library for integrating the server side apps and RevenueCat webhook service

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 98.4%
  • Makefile 1.6%