Skip to content

A helper library for integrating server-side apps with the RevenueCat webhook service.

License

Notifications You must be signed in to change notification settings

iktakahiro/revcatgo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

revcatgo

GoDev

Run test

A helper library for integrating server-side apps with the RevenueCat webhook service.

go get "github.com/iktakahiro/[email protected]"

Receiving 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 specifications

Refer to the official documentation:

About

A helper library for integrating server-side apps with the RevenueCat webhook service.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published