original_string: protected function sendRequest(array $credentials): ResponseInterface
      {
          $options = [
              ('GET' === $this->requestMethod) ? 'query' : 'json' => $credentials,
          ];
  
          return $this->setHttpClient($this->app['http_client'])->request($this->getEndpoint(), $this->requestMethod, $options);
      }
code: protected function sendRequest(array $credentials): ResponseInterface
      {
          $options = [
              ('GET' === $this->requestMethod) ? 'query' : 'json' => $credentials,
          ];
  
          return $this->setHttpClient($this->app['http_client'])->request($this->getEndpoint(), $this->requestMethod, $options);
      }
code_tokens: protected function sendRequest ( array $ credentials ) : ResponseInterface { $ options = [ ( 'GET' === $ this -> requestMethod ) ? 'query' : 'json' => $ credentials , ] ; return $ this -> setHttpClient ( $ this -> app [ 'http_client' ] ) -> request ( $ this -> getEndpoint ( ) , $ this -> requestMethod , $ options ) ; }
docstring: Send http request.
  
  @param array $credentials
  
  @return ResponseInterface
  
  @throws \EasyWeChat\Kernel\Exceptions\InvalidArgumentException
docstring_tokens: Send http request .