Code Monkey home page Code Monkey logo

Comments (7)

Tucker-Eric avatar Tucker-Eric commented on August 15, 2024 1

Looking at the source it looks like the first account returned in the login response is the account used for future calls after that and is automatically prepended to the argument list.

Since this is a thin wrapper around the docusign-php-client we'd actually be using the listTabs method on the TemplatesApi class.

So for this one it looks like it should be:

$client->templates->listTabs($recipient_id, $template_id);

from docusign-rest-client.

blorange2 avatar blorange2 commented on August 15, 2024 1

That makes a whole lot of sense. It's a valuable lesson in terms of knowing what packages are making easier in terms of interaction.

I'll give this a go, thanks again.

from docusign-rest-client.

blorange2 avatar blorange2 commented on August 15, 2024

Looking at the source it looks like the first account returned in the login response is the account used for future calls after that and is automatically prepended to the argument list.

Since this is a thin wrapper around the docusign-php-client we'd actually be using the listTabs method on the TemplatesApi class.

So for this one it looks like it should be:

$client->templates->listTabs($recipient_id, $template_id);

Just because I'm sometimes a bit dense. Do you just look for the equivalent from the PHP wrapper?

from docusign-rest-client.

Tucker-Eric avatar Tucker-Eric commented on August 15, 2024

Yup.

This client wraps that and will take care of injecting the account id as the first parameter to all methods that require it.

from docusign-rest-client.

blorange2 avatar blorange2 commented on August 15, 2024

That's very cool. I think I'll close this and go find out how to grab the recipient ID, basically a guy made a template and added a load of tabs to it that he wants me to pre-fill via a webform, but I've not even been given any labels, so it's been 'interesting'.

This wrapper has been super helpful though

from docusign-rest-client.

blorange2 avatar blorange2 commented on August 15, 2024

@Tucker-Eric just to follow up, I didn't see a tabs api so in this case are they passed per signer?

from docusign-rest-client.

Tucker-Eric avatar Tucker-Eric commented on August 15, 2024

@blorange2 the way I would approach it based on the uri /v2/accounts/{accountId}/templates/{templateId}/recipients/{recipientId}/tabs. Anything that is account level is automatically handled post authentication for you so we can omit the /v2/accounts/{accountId} portion, which leaves us templates/{templateId}/recipients/{recipientId}/tabs. With templates as the first uri segment, that led me to TemplatesApi which is where I found the listTabs method that is per recipient which seemed like it fit your use case.

Looking at Docusign's TemplatesApi it looks like there is a listDocuments method that can respond with all tabs when passed the option to like:

$templateApi = $client->templates;
$templateApi->listDocuments($template_id, $templateApi->listDocumentsOptions(['include_tabs' => true]));

I hope this makes some sense?

from docusign-rest-client.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.