mirror of
https://github.com/henrybear327/Proton-API-Bridge.git
synced 2026-01-06 06:08:24 -05:00
17 lines
388 B
Go
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
|
|
}
|