github.com/1and1/oneandone-cloudserver-sdk-go@v1.4.1/setup.go (about) 1 package oneandone 2 3 // The base url for 1&1 Cloud Server REST API. 4 var BaseUrl = "https://cloudpanel-api.1and1.com/v1" 5 6 // Authentication token 7 var Token string 8 9 // SetBaseUrl is intended to set the REST base url. BaseUrl is declared in setup.go 10 func SetBaseUrl(newbaseurl string) string { 11 BaseUrl = newbaseurl 12 return BaseUrl 13 } 14 15 // SetToken is used to set authentication Token for the REST service. Token is declared in setup.go 16 func SetToken(newtoken string) string { 17 Token = newtoken 18 return Token 19 }