Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

get_template_edit_url returning incorrect edit_url for editing embedded templates #86

Open
JoshAllenJones opened this issue Feb 9, 2021 · 1 comment
Labels
legacy Related to legacy, non-OpenAPI SDK

Comments

@JoshAllenJones
Copy link

When trying to edit an embedded template, get_template_edit_url() returns an edit_url. It is able to be used to open the iFrame on the client side, however, upon making any changes, an error is thrown via the iFrame. The error number is js409b72b56. While trying to find a solution, I opted to use the requests library and was able to successfully edit an embedded template. For reference, here is the call being done by the requests library:

        post_data = {
            "test_mode": 1,
        }
        edit_obj = requests.post(f'https://{current_app.config.get("HS_API_KEY")}:@api.hellosign.com/v3/embedded/edit_url/{template_record.template_id}', data=post_data)
        resp_dict = edit_obj.json()
        print(edit_obj.json())
        edit_url = edit_obj.json()["embedded"]["edit_url"]
        print(edit_url)

This allows you to edit and save changes via the iFrame.

@gpopoteur
Copy link
Contributor

Thanks for reporting this issue @JoshAllenJones , we will investigate this further.

@jtreminio-dropbox jtreminio-dropbox added the legacy Related to legacy, non-OpenAPI SDK label Apr 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
legacy Related to legacy, non-OpenAPI SDK
Projects
None yet
Development

No branches or pull requests

3 participants