# call API return “Missing parameters”

**URL:** <https://discuss.google.dev/t/call-api-return-missing-parameters/3739>\
**Category:** Apigee\
**Tags:** api-runtime\
**Created:** [October 10, 2017, 10:20am UTC](https://discuss.google.dev/t/call-api-return-missing-parameters/3739 "2017-10-10T10:20:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [October 10, 2017, 10:20am UTC](https://discuss.google.dev/t/call-api-return-missing-parameters/3739/1 "2017-10-10T10:20:43Z")

</div>

i have PHP project with laravel(5.4 version) framework so i need to implement SAOP API Yousign(Yousign API process the signature of document ) , so I have download and install this package from Github"YouSign-NodeJS-API-Wrapper" to my project ,i put in config file my credentials and the connection to the api is accomplished ,so I tried to implement function initSignature

initSignature(fileToSignRelativePath, firstName, lastName, email, phone, signatureCoordinates) Inits a signature and returns the url of the signing page

 ![5752-gggggg.png](https://d2yds90mtvelsl.cloudfront.net/original/3X/8/5/85da582c4a3d1f5c9d0022c1b56acfcc96d5ed97.png)

i tried to prepare small test script to this function in js and there’s a code here :

```auto
var ysAPIWrapper = require('yousign-nodejs-api-wrapper')
console.log(ysAPIWrapper)
ysAPIWrapper.checkAuth().then(function (response) {
console.log(response)
})
ysAPIWrapper.initSignature('C:/document1.pdf',' 
hosni','akkeri','info@mail.fr','+3367499750', [
{
    rectangleCoords: "351,32,551,132", 

    page: 1,
    document: 1
 }
 ],null,null,null).then(function (response, error) {  
 yarj3oulna mel Promise
  console.log(response)    
 traitement
 console.log(error)  
traitement
 }) 

```

when i want to test i have this message :

 ![5753-llllhhh.png](https://d2yds90mtvelsl.cloudfront.net/original/3X/9/1/912b87b8fa4e3b3511d095c8ef8438aa5addba7b.png)

---

<div class="post-metadata">

**Author:** ![davissean](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@davissean](https://discuss.google.dev/u/davissean)\
**Post date:** [October 10, 2017, 11:55am UTC](https://discuss.google.dev/t/call-api-return-missing-parameters/3739/2 "2017-10-10T11:55:22Z")

</div>

I don’t think this is an Apigee question.

Could you raise this on the yousign-nodejs-api-wrapper github?
