original_string: public function authenticate()
      {
          $request = new Request($this->handler);
          $this->token = $request->execute(
              RequestMethods::HTTP_POST,
              $this->makeUrl(RequestMethods::DOMUSERP_API_PEDIDOVENDA . '/auth'),
              [
                  'json' => [
                      'login'    => $this->username,
                      'password' => $this->password
                  ]
              ]
          )->token;
  
          return $this;
      }
code: public function authenticate()
      {
          $request = new Request($this->handler);
          $this->token = $request->execute(
              RequestMethods::HTTP_POST,
              $this->makeUrl(RequestMethods::DOMUSERP_API_PEDIDOVENDA . '/auth'),
              [
                  'json' => [
                      'login'    => $this->username,
                      'password' => $this->password
                  ]
              ]
          )->token;
  
          return $this;
      }
code_tokens: public function authenticate ( ) { $ request = new Request ( $ this -> handler ) ; $ this -> token = $ request -> execute ( RequestMethods :: HTTP_POST , $ this -> makeUrl ( RequestMethods :: DOMUSERP_API_PEDIDOVENDA . '/auth' ) , [ 'json' => [ 'login' => $ this -> username , 'password' => $ this -> password ] ] ) -> token ; return $ this ; }
docstring: Request an access token and sets it to the client.
  
  @return $this
  @throws \GuzzleHttp\Exception\GuzzleException
docstring_tokens: Request an access token and sets it to the client .