first commit

This commit is contained in:
2017-09-12 20:57:38 +01:00
commit 704805e7b4
11 changed files with 865 additions and 0 deletions
+20
View File
@@ -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
}