Comments (2)
Hi @code4ghana ,
The Swagger file includes the specification for the eSignature REST API itself. The ApiClient is how the SDKs keep track of the baseUrl and other information.
To obtain an access_token for the API, create a client_id (what DocuSign calls an integration key), and then use Authorization Code, Implicit, or JWT grant to get an access token.
Include the access token with each API call in an Authorization
header.
See https://developers.docusign.com/platform/auth/choose/
from openapi-specifications.
Hey @LarryKlugerDS
thanks for the response! The ApiClient class also has methods that help with the jwt flow for you, so it was useful being able to abstract the auth-dance to it. The demo code explicitly uses that object so I was just surprised when I could not find it, perhaps the demo could be updated to not use it since it's not meant to be be used.
Most of this was prompted by me wanting to use typescript so I :
- npm i docusign-esign
- npm i @types/docusign-esign
- Getting missing/undefined object errors (e.g. EnvelopeDefinition) and realizing that the two libraries are out of sync (I believe the types library is out of date).
- Decided to regen the newest types with Swagger, which lead to its own rabbit-hole.
My issue is solved, but I'll leave this bug open for you to decide whether any tasks should come out of it!
thanks again!
from openapi-specifications.
Related Issues (19)
- recipientCount property has an incorrect definition. HOT 3
- Type offlineAttributes definition references itself HOT 5
- 'reminderEnabled' description inaccurate HOT 1
- CodeGen typing List incorrectly in generated class List HOT 1
- "offlineAttributes" are not defined in both swagger files HOT 8
- Cannot reliably generate API code for 2.1 HOT 6
- 2.1 API Specificiation HOT 4
- BCCEmailArchive inconsistent naming
- Missing object definitions in reference section (version 2.1) HOT 9
- AdminAPI incorrect jsonschema type - ['reserved_domains']['items']['properties']['settings']['items']['properties']['value'] HOT 1
- SignatureAPI - Settings schema doesn't include accountMangementGranular
- radioGroup toolTipMetadata field name has different case then other tabs (version 2.1) HOT 1
- ESignature 2.1 number and date definitions are being ignored by OpenAPI Generator for some languages HOT 3
- Tabs height and width defined as strings (version 2.1) HOT 3
- oauthAccess.expires_in is specified as string but API responds with integer
- Duplicate schema BCCEmailArchive in esignature v2.1 API
- E-Signature v2.1 Build Error in golang (duplicate "langCode") HOT 1
- OrganizationResponse has list[IdentityProvidersResponse instead of list[IdentityProviderResponse]
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 openapi-specifications.