Code Monkey home page Code Monkey logo

Comments (2)

LarryKlugerDS avatar LarryKlugerDS commented on May 29, 2024

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.

code4ghana avatar code4ghana commented on May 29, 2024

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 :

  1. npm i docusign-esign
  2. npm i @types/docusign-esign
  3. 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).
  4. 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)

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.