0

Help on fileTransferSend for receive action

 
url = ymSide.getServer() + "/v1/filetransfer/relay?sid=" + ymSide.
connection = ymSide.connectionApiHTTP(url, "POST", true);
req = "{\"sendAs\":\"" + ymSide.getUsername() +
        + "\"action\":\"receive\","
+ "\"ftSessionId\":\"" + id + "\","
+ "\"target\":\"" + destination + "\","
+ "\"relayIP\":\"" + relayIP + "\","
+ "\"filename\":\"" + fileName + "\"" + "}";
connection.setRequestProperty("Content-Type", "application/json;charset=utf-8");
connection.setRequestProperty("Content-Length", "" + req.length());
connection.openOutputStream().write(req.getBytes());
connection.openInputStream();

this code return {"error":{"code":-1005,"detail":"Invalid Argument Error","description":"Invalid Argument Error"}.

Can someone help me where exactly the error is? I search all over req, it is meet the requirement api.

by
1 Reply
  • Blockquote~~~ your code goes here ~~~your text 1. List Itemyour text 1. List Item**strong text***italic text*GUV9UVojcxpBAdE2z86fFwvaO2eU5G3aBXw

    0

Recent Posts

in Messenger IM SDK