Open GoogleCodeExporter opened 9 years ago
Would you like to write this feature and be added as a committer?
Original comment by malone.j...@gmail.com
on 6 Mar 2011 at 3:08
Sure. I can figure it out.
Original comment by walt.jav...@gmail.com
on 6 Mar 2011 at 3:11
OK, you should be added now
Original comment by malone.j...@gmail.com
on 6 Mar 2011 at 10:38
Original comment by walt.jav...@gmail.com
on 22 Mar 2011 at 6:13
Original comment by walt.jav...@gmail.com
on 22 Mar 2011 at 6:24
Hi Walt, maybe you already fixed this issue, but I wanted to ask. Any progress?
Original comment by malone.j...@gmail.com
on 3 Feb 2012 at 3:29
// /voice/inbox/deleteForeverMessages/
public String deleteForever(String[] messagIds) throws IOException {
String out = "";
String smsdata = "";
for (String _mid : messagIds) {
smsdata += "&" + URLEncoder.encode("messages", enc) + "=" + _mid;
}
smsdata += "&_rnr_se=";
smsdata += URLEncoder.encode(rnrSEE, enc);
System.out.println("smsdata: " + smsdata);
URL deleteurl = new URL("https://www.google.com/voice/inbox/deleteForeverMessages/");
URLConnection smsconn = deleteurl.openConnection();
smsconn.setRequestProperty("Authorization", "GoogleLogin auth=" + authToken);
smsconn.setRequestProperty("User-agent", USER_AGENT);
smsconn.setDoOutput(true);
OutputStreamWriter callwr = new OutputStreamWriter(smsconn.getOutputStream());
callwr.write(smsdata);
callwr.flush();
BufferedReader callrd = new BufferedReader(new InputStreamReader(smsconn.getInputStream()));
String line;
while ((line = callrd.readLine()) != null) {
out += line + "\n\r";
}
callwr.close();
callrd.close();
if (out.equals("")) {
throw new IOException("No Response Data Received.");
}
return out;
}
Original comment by gherty.h...@gmail.com
on 22 Apr 2014 at 11:53
I think you must put message in trash with deleteMessage first. then delete
forever
Original comment by gherty.h...@gmail.com
on 22 Apr 2014 at 11:54
Original issue reported on code.google.com by
walt.jav...@gmail.com
on 4 Mar 2011 at 11:29