Cloud Development Kit

Required String parameter 'applicationKey' is not present

Hi,

I am trying to call the text api from postman( a rest api client application) in the following manner. And in response, i am getting this error.

POST : https://cloud.myscript.com/api/v3.0/recognition/rest/text/doSimpleRecognition.json
Request :

{
parameter:{
applicationKey:xxxxxx-xxxxx-xxxx-xxxx-xxxxxxxxxxxx //changed this to my application key
},


textParameter:{
language:en_US,
textInputMode:CURSIVE

},

inputUnits:[
{
textInputType:MULTI_LINE_TEXT,
components:[
{
type:stroke,
x:[
438,
439,
439
],
y:[
319.5,
313.5,
312.5
]
}
]
}
]
}


Response :
{
result: {
message: Required String parameter 'applicationKey' is not present
}
}

Please let me know, where i am going wrong.


Thanks for your message.
Your request is valid and works fine. As you have created 2 applications and revoked one application key, could you please make sure you use the valid one and try again?

Best regards

Hi Cate,

I deleted the revoked one, and now using the other one but still getting the same error.

Hello,
I tried 'postman' chrome app with parameter below:
- applicationKey: please choose one apikey with hmackey disabled
- textInput={textParameter: {language:en_US,textInputMode:CURSIVE},inputUnits: [{textInputType:MULTI_LINE_TEXT,components: [{type:stroke,x:[438,439,439],y:[319.5,313.5,312.5]}]}]}
Could you please check you use the same settings as shown below?
postman-app

Best regards

Hi Cate,

Now I tried the way you have done. so this time i have not got the applicationKey error. but now it's like below.
{
result: {
message: Internal Message Error
}
}
screenshot

Hi Cate,
We just got it working. we were insertig HMAC enabled apiKey.

Thanks a lot.

Login or Signup to post a comment