Files
Proton-API-Bridge/common/proton_manager.go
2023-07-01 10:08:07 +02:00

17 lines
388 B
Go

package common
import (
"github.com/henrybear327/go-proton-api"
)
func getProtonManager(appVersion string, userAgent string) *proton.Manager {
/* Notes on API calls: if the app version is not specified, the api calls will be rejected. */
options := []proton.Option{
proton.WithAppVersion(appVersion),
proton.WithUserAgent(userAgent),
}
m := proton.New(options...)
return m
}