client.go: using method parameter to request url