Skip to content
This repository has been archived by the owner on Apr 15, 2021. It is now read-only.

Send e mail with hyperlink to file

baart92 edited this page May 24, 2014 · 4 revisions

URL:

{serverAddress}/api/sendhyperlink

Method:

POST

Content-type:

application/json

Method for web application:

public static ObjectNode web_sendhyperlink(String login, String sid, String fileid) in controllers.Mailing

Description:

Sends e-mail with hyperlink to specified file

Input:

{
  "login": "your login",
  "sid": "id of current session",
  "fileid": "id of file"
}

Output OK:

{
  "status": "ok"
}

Output error:

{
  "status": "failed",
  "reason": "reason of error"
}

Types of reasons:

  • json excepted
  • incorrect data
  • incorrect sid - incorrect session id
  • access denied