Create app using api problem

  • 1
  • Question
  • Updated 9 years ago
  • Answered
when i create a app i got the error. {"error":"Invalid parameters"}

This is my post fields array
Array ( [data] => {"title":"Second App"} [file] => @D:\Program Files\xampp\htdocs\build-phonegap\www.zip )

I am using php. if any have code please help us
Photo of sakthi

sakthi

  • 1 Post
  • 0 Reply Likes

Posted 9 years ago

  • 1
Photo of Andrew Lunny

Andrew Lunny

  • 1911 Posts
  • 199 Reply Likes
It looks like your data param is a PHP hash, rather than a JSON string (I haven't used PHP in a while, so I could be wrong).

Try setting the data parameter to:

'{"title":"Second App"}'


You might need to escape the double-quotes with backslashes - Get Satisfaction does some escaping that won't let me put that in the code block above.