def list(query={})
      json = GET(create_url([api_version, resources_path]), query).body
      if @return_single_on_querying && !query.empty?
        return_resource(resource_from_json(json))
      else
        return_resources(resources_from_json(json))
      end
    end
def list(query={})
      json = GET(create_url([api_version, resources_path]), query).body
      if @return_single_on_querying && !query.empty?
        return_resource(resource_from_json(json))
      else
        return_resources(resources_from_json(json))
      end
    end
restful methods