Comments (7)
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.
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.
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 theTemplatesApi
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.
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.
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.
@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.
@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)
- docusign/esign-client v 3 new API classes HOT 2
- Update SDK to 5.1 HOT 2
- I got the error on installing Tucker-Eric / docusign-rest-client. HOT 2
- Question, help needed HOT 1
- getRecipientViewRequest Seems to not being implemented HOT 1
- PHP 8 is unsupported HOT 2
- I got the error on composer update: tucker-eric/docusign-rest-client[2.0.0, 3.0.0] require php ^7.2 -> your php version (8.0.2) does not satisfy that requirement. HOT 2
- Dear Mr. Tucker, HOT 4
- Does this work on live app? HOT 1
- prefillTabs missing HOT 6
- Deprecation of Legacy Authentication on September HOT 3
- Getting error: USER_AUTHENTICATION_FAILED on create envelope HOT 1
- Example in Readme seems to be wrong HOT 2
- Need to downgrade to 2.0.0 version with php 8.1 HOT 2
- New authentification OAuth2 : can you release a new version of this bundle ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docusign-rest-client.