mirror of
https://github.com/cubixle/go-ebay.git
synced 2026-04-24 22:34:47 +01:00
21 lines
354 B
Go
21 lines
354 B
Go
package config
|
|
|
|
const sandboxURL = "https://api.sandbox.ebay.com"
|
|
const productionURL = "https://api.ebay.com"
|
|
|
|
type Config struct {
|
|
BaseUrl string
|
|
|
|
DevId, AppId, CertId string
|
|
RuName, AuthToken string
|
|
SiteId int
|
|
}
|
|
|
|
func (e *Config) Sandbox() {
|
|
e.BaseUrl = sandboxURL
|
|
}
|
|
|
|
func (e *Config) Production() {
|
|
e.BaseUrl = productionURL
|
|
}
|