protected function run($method, $args) {
		$request = $this->request();
		$request->method($method);
		$request->resource(array_shift($args));
		if (count($args)) {
			$request->params(array_shift($args));
		}
		if (count($args)) {
			$request->files(array_shift($args));
		}
		return $request->send();
	}
protected function run($method, $args) {
		$request = $this->request();
		$request->method($method);
		$request->resource(array_shift($args));
		if (count($args)) {
			$request->params(array_shift($args));
		}
		if (count($args)) {
			$request->files(array_shift($args));
		}
		return $request->send();
	}
protected function run ( $ method , $ args ) { $ request = $ this -> request ( ) ; $ request -> method ( $ method ) ; $ request -> resource ( array_shift ( $ args ) ) ; if ( count ( $ args ) ) { $ request -> params ( array_shift ( $ args ) ) ; } if ( count ( $ args ) ) { $ request -> files ( array_shift ( $ args ) ) ; } return $ request -> send ( ) ; }
Convenience method for sending a request and returning a response.

@return Response
@throws OAuthException|ApiResponseException
Convenience method for sending a request and returning a response .