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);
    }
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);
    }
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 ) ; }
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
Retrieves an embedded object containing an edit URL that can be opened in an iFrame to edit an EmbeddedTemplate .