def send(self, url, http_method, **client_args):
response = super(Resource, self).send(url, http_method, **client_args)<EOL>if response.status_code in (requests.codes.ok, requests.codes.created):<EOL><INDENT>try:<EOL><INDENT>self.update_from_dict(self.client.get_response_data(response, self.Meta.parse_json))<EOL><DEDENT>except ValueError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>return response if response is not None else None<EOL>
Make the actual request to the API, updating the resource if necessary
:param url: Endpoint URL
:param http_method: The method used to make the request to the API
:param client_args: Arguments to be sent to the auth client
:return: