protected function _callApiPreparationsGet(
    $httpmethod, $url, $params, $app_only_auth
  ) {
    return [
      $app_only_auth                ? null : $this->_sign($httpmethod, $url, $params),
      json_encode($params) === '[]' ? $url : $url . '?' . http_build_query($params)
    ];
  }
protected function _callApiPreparationsGet(
    $httpmethod, $url, $params, $app_only_auth
  ) {
    return [
      $app_only_auth                ? null : $this->_sign($httpmethod, $url, $params),
      json_encode($params) === '[]' ? $url : $url . '?' . http_build_query($params)
    ];
  }
protected function _callApiPreparationsGet ( $ httpmethod , $ url , $ params , $ app_only_auth ) { return [ $ app_only_auth ? null : $ this -> _sign ( $ httpmethod , $ url , $ params ) , json_encode ( $ params ) === '[]' ? $ url : $ url . '?' . http_build_query ( $ params ) ] ; }
Do preparations to make the API GET call

@param string  $httpmethod      The HTTP method to use for making the request
@param string  $url             The URL to call
@param array   $params          The parameters to send along
@param bool    $app_only_auth   Whether to use app-only bearer authentication

@return string[] (string authorization, string url)
Do preparations to make the API GET call