mirror of
https://github.com/cubixle/go-ebay.git
synced 2026-04-30 14:08:45 +01:00
first commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user