original_string: public function getEmbeddedEditUrl($id, Template $request = null)
      {
          if ($request !== null) {
            $params = $request->toParams();
            $response = $this->rest->post(
              static::EMBEDDED_EDIT_URL_PATH . '/' . $id,
              $params
            );
          } else {
            $response = $this->rest->get(
              static::EMBEDDED_EDIT_URL_PATH . '/' . $id
            );
          }
  
  
          $this->checkResponse($response);
  
          return new EmbeddedResponse($response);
      }
code: public function getEmbeddedEditUrl($id, Template $request = null)
      {
          if ($request !== null) {
            $params = $request->toParams();
            $response = $this->rest->post(
              static::EMBEDDED_EDIT_URL_PATH . '/' . $id,
              $params
            );
          } else {
            $response = $this->rest->get(
              static::EMBEDDED_EDIT_URL_PATH . '/' . $id
            );
          }
  
  
          $this->checkResponse($response);
  
          return new EmbeddedResponse($response);
      }
code_tokens: public function getEmbeddedEditUrl ( $ id , Template $ request = null ) { if ( $ request !== null ) { $ params = $ request -> toParams ( ) ; $ response = $ this -> rest -> post ( static :: EMBEDDED_EDIT_URL_PATH . '/' . $ id , $ params ) ; } else { $ response = $ this -> rest -> get ( static :: EMBEDDED_EDIT_URL_PATH . '/' . $ id ) ; } $ this -> checkResponse ( $ response ) ; return new EmbeddedResponse ( $ response ) ; }
docstring: Retrieves an embedded object containing an edit URL that can be opened in an iFrame
  to edit an EmbeddedTemplate.
  
  @param  string $id The ID of the EmbeddedTemplate to edit or create.
  @param  Template $request Template object with settings for the Embedded Template
  @return EmbeddedResponse
  @throws BaseException
docstring_tokens: Retrieves an embedded object containing an edit URL that can be opened in an iFrame to edit an EmbeddedTemplate .