Explorar el Código

Add Client.BaseURL() method

This allows applications to verify the environment they're interacting
with.
main
Matt Baer hace 2 años
padre
commit
91e1f9124d
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. +5
    -0
      writeas.go

+ 5
- 0
writeas.go Ver fichero

@@ -108,6 +108,11 @@ func (c *Client) Token() string {
return c.token
}

// BaseURL returns the base API URL the Client will make calls against.
func (c *Client) BaseURL() string {
return c.baseURL
}

func (c *Client) get(path string, r interface{}) (*impart.Envelope, error) {
method := "GET"
if method != "GET" && method != "HEAD" {


Cargando…
Cancelar
Guardar