/*
List
Returns a Collection instance from the server. Query is a URL encoded set of GET
variables that can be easily generated from the Query type and Query.Encode
method.
*/
List
Returns a Collection instance from the server. Query is a URL encoded set of GET
variables that can be easily generated from the Query type and Query.Encode
method.
/ * List Returns a Collection instance from the server . Query is a URL encoded set of GET variables that can be easily generated from the Query type and Query . Encode method . * /
func (c *Connection) List(Type, Query string) (Collection, error) {
	Url := fmt.Sprintf("/%s", Type)
	if Query != "" {
		Url = Url + "?" + Query
	}
	return c.listFromPath(Url)
}
func ( c * Connection ) List ( Type , Query string ) ( Collection , error ) { Url := fmt . Sprintf ( " " , Type ) if Query != " " { Url = Url + " " + Query } return c . listFromPath ( Url ) }
List
Returns a Collection instance from the server.
List Returns a Collection instance from the server .