Problem using API to create disposable email address
Posted: 19 Mar 2012, 15:48
I'm trying to use the API to programmatically create a new disposable email address but I always get "Error 6 = Missing parameters".
I am sending a POST to this URL:
https://ssl.trashmail.net/?api=1&lang=en&cmd=create_dea
The POST data is:
disposable_name=mynewemail&disposable_domain=trashmail.net&destination=[email protected]&forwards=2&expire=2&cs=0¬ify=&id=-1&website=
The response I get is
{"success":false, "error_code":6, "msg":"Missing Parameters."}
Prior to sending this request, I send a login request which is successful, and I include the returned cookie with the subsequent requests. I have read the API v3.0 carefully and I believe I am sending all the right parameters. I also enabled debug mode 2 on Trashmail's Firefox plug-in, and used the Error Console to view what the plug-in sends when it creates an email address, and as far as I can see, I am sending the same data that it is. The plug in works fine, but not my program.
Any help would be much appreciated.
Regards,
Tim
I am sending a POST to this URL:
https://ssl.trashmail.net/?api=1&lang=en&cmd=create_dea
The POST data is:
disposable_name=mynewemail&disposable_domain=trashmail.net&destination=[email protected]&forwards=2&expire=2&cs=0¬ify=&id=-1&website=
The response I get is
{"success":false, "error_code":6, "msg":"Missing Parameters."}
Prior to sending this request, I send a login request which is successful, and I include the returned cookie with the subsequent requests. I have read the API v3.0 carefully and I believe I am sending all the right parameters. I also enabled debug mode 2 on Trashmail's Firefox plug-in, and used the Error Console to view what the plug-in sends when it creates an email address, and as far as I can see, I am sending the same data that it is. The plug in works fine, but not my program.
Any help would be much appreciated.
Regards,
Tim