Page 1 of 1

update_dea output=> {"success":false,"error_code":0}

Posted: 11 Nov 2011, 22:45
by coder
I can login and get a cookie okay:

Code: Select all

curl -s --dump-header cookie.txt --data 'api=1&cmd=login&fe-login-user='$(userid)'&fe-login-pass='$(password) 
But I cannot update an address. I've been struggling for hours. This is the command:

Code: Select all

curl -s --cookie cookie.txt --data '{"data":[{"expire":14,"id":1234567}]}' 'https://ssl.trashmail.net/?api=1&lang=en&cmd=update_dea'
{"success":false,"error_code":0}
What does that error code mean?

Re: update_dea output=> {"success":false,"error_code":0}

Posted: 01 Jan 2012, 12:42
by Admin
error_code 0 means unknown error.
You can debug the API by using Mozilla Firefox Add-On Firebug and then log into the web address manager.

The best would be that I provide a API example files in UNIX bash shell script files. So everyone could use it in PHP, Perl, Python etc.