Blog
Home/

Trending Topics: Latest from our forums (August 2022)

Inbar Gazit
Inbar GazitSr. Manager, Developer Content
Summary3 min read

See how our most popular recent threads on Stack Overflow can help you solve your own development issues.

    • Additional resources

    Table of contents

    Here are some of the latest popular questions that the Docusign developers community asked on Stack Overflow in the month of August 2022. You too can ask questions by using the tag docusignapi in Stack Overflow.

    Thread: How to get an access token with Authorization Code Grant, Docusign

    https://stackoverflow.com/questions/73331749/

    Summary: The developer is using Python and is attempting to obtain an access token using Authorization Code Grant in order to make an eSignature REST API call to list all the templates in the account. The access token obtained using Python code doesn’t work, whereas the token obtained manually does seem to work.

    Answer: It is highly recommended that when implementing Authorization Code Grant in your integration, you use an existing robust third-party library. This will reduce security risks for your application and help you quickly get your code working properly. For Python you can use the requests-oauthlib, or you can download our Quickstart code and then select Python and Auth Code Grant to see a working example.

    Thread: Cannot invoke "org.bouncycastle.util.io.pem.PemObject.getContent()" because "pemObject" is null

    https://stackoverflow.com/questions/73206131/

    Summary: This developer is Java and attempting to authenticate to Docusign using JWT Grant. They are getting the error from Java when running the code. 

    Answer: You can find the developer’s code in the Stack Overflow post. The recommended Java code to use for obtaining an access token using JWT Grant is provided below:

    File pemFile = new File(filepath); 
    Reader reader = new FileReader(pemFile); 
    PemReader reader = new PemReader(reader); 
    PemObject pemObject = reader.readPemObject(); 
    byte[] bytes = pemObject.getContent();
    
    

    You can find a full working code example in Java in our GitHub or download a Quickstart that includes JWT and Java.

    Thread: How to add image in a documents in Docusign

    https://stackoverflow.com/questions/73227921/

    Summary: The developer is interested in embedding an image inside a document that is sent for signature. They are wondering how to do that.

    Answer: Images can be added to an envelope just like any other type of document. You can add documents with many different extension types (bmp, .gif, .jpg, .jpeg, .png, .tif, .tiff) to an envelope

    However, if you want to embed an image inside another document, you may want to use a drawing tab. A drawing tab allows the recipient to upload an image to be embedded in the document. However, the content of drawing tabs cannot be updated via the API.

    Additional resources

    Inbar Gazit
    Inbar GazitSr. Manager, Developer Content

    Inbar Gazit has been with Docusign since 2013 in various engineering roles. Since 2019 he has focused on developer content. Inbar works on code examples including the launchers, available on GitHub in eight languages, and helps build sample apps showcasing the various Docusign APIs. He is also active on StackOverflow, answering your questions. Inbar can be reached at inbar.gazit@docusign.com.

    More posts from this author

    Related posts

    • Developer Spotlight

      Developer Spotlight is Coming to Docusign Community!

      Matthew Lusher
      Matthew Lusher
    • Breaking the Language Barrier: Why Large Language Models Need Open Text Formats

      Dan Selman
      Dan Selman
    • Understanding Levenshtein Distance: Applications to AI-Generated Text

      Vincent Pan
      Vincent Pan

    Developer Spotlight is Coming to Docusign Community!

    Matthew Lusher
    Matthew Lusher

    Understanding Levenshtein Distance: Applications to AI-Generated Text

    Vincent Pan
    Vincent Pan

    Discover what's new with Docusign IAM or start with eSignature for free

    Explore Docusign IAMTry eSignature for Free
    Person smiling while presenting