src/M2X.php
protected function prepareRequest($request) {
    $request->header('X-M2X-KEY', $this->apiKey);
    $request->header('User-Agent', $this->userAgent);
    return $request;
  }
protected function prepareRequest($request) {
    $request->header('X-M2X-KEY', $this->apiKey);
    $request->header('User-Agent', $this->userAgent);
    return $request;
  }
protected function prepareRequest ( $ request ) { $ request -> header ( 'X-M2X-KEY' , $ this -> apiKey ) ; $ request -> header ( 'User-Agent' , $ this -> userAgent ) ; return $ request ; }
Sets the common headers for each request to the API.

@param HttpRequest $request
@return HttpRequest
Sets the common headers for each request to the API .