sponnusa / missed-call-otp

Automatically exported from code.google.com/p/missed-call-otp
0 stars 0 forks source link

error in matching otp in Motp #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.Validate OTP Entered by user on a web form - POST Request

What is the expected output? What do you see instead?
Result :Success but we are getting an exception Method Not Supported 

What version of the product are you using? On what operating system?
Motp v1 open Api  on windows7

Please provide any additional information below.

What is <MyClass> in  below code how can i create this class 

and when i am using .asjson(); it is asking of a parameter which is not found 
in below code .

Task<HttpResponse<MyClass>> response = 
Unirest.post("https://motp.p.mashape.com/v1/otp/0004-7aa8f9b0-549ac719-5c5b-d297
ab58/Sid549bd4bc6605f4.52321340")
.header("X-Mashape-Key", "FjGFVH9yPqmshqpdzpxCCX5sipW5p1ncey9jsnOo6WQw6qZTSy")
.header("Content-Type", "application/x-www-form-urlencoded")
.field("private", "0009-7aa8f9b0-549ac719-5c5e-0b72f840")
.asJson();

Original issue reported on code.google.com by JHS.PVT....@gmail.com on 25 Dec 2014 at 3:02

GoogleCodeExporter commented 9 years ago
Hi,

If making POST request is troubling you a lot, then I would suggest you to drop 
a mail to hello@dial2verify.in and ask them to enable GET ONLY api settings for 
you,

Original comment by rahc...@gmail.com on 25 Dec 2014 at 3:47