• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

API create Transient Document - Bad Request

New Here ,
May 20, 2021 May 20, 2021

Copy link to clipboard

Copied

hi, 

I have a developer account for testing out API. As for my code I am able to get refresh tokens issue ( using nodejs/javascript for coding). I am stuck at create transientdocuments, they are working fine from front-end the test API. here is what I am using. Any suggestions would be appreciated

 

 const formData = {
                    "File": fs.createReadStream("./outputpdf/output2.pdf"),
                    "Mime-Type": "application/pdf",
                    "File-Name": "output2.pdf"
                }; //end of formdata

                let urlid = 'https://api.in1.adobesign.com/api/rest/v6/transientDocuments';
                // console.log("New access token is " + JSON.parse(inbody).access_token);
                request.post({
                        uri: urlid,
                        headers: {
                            "content-type": "application/x-www-form-urlencoded",
                            "Authorization": "Bearer " + JSON.parse(inbody).access_token,
                        },
                        form: formData
                    },
 
TOPICS
Send documents

Views

362

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation