Get

Get a weblink.

Request

POST https://test-uni.cloudplan.biz/api/weblink/get

{
    "file_id": "..."   // (string) include only links with this file id
    "folder_id": "..." // (string) include only links with this folder id
    "user_id": "..."   // (string) include only links with this user id
}

Note: at least one of the ids has to be specified.

Reply

{
    "result": true/false,
    "reason": any error code (on failure)
    "weblinks": [
        {
            "weblink_id" : ...
            "approved" : true/false
            "folder_id" : ...
            "needs_approval" : true/false
            "views" : 0                 // number of views
            "max_downloads" : 0         // number of maximum downloads
            "downloads" : 0             // number of used downloads
            "valid_until" : 0           // timestamp for end of life
            "created" : 0               // timestamp of creation
            "creator_id" : ...          // user id of the creator
            "permissions" : "read"/"write"/"delete"
            "protected" : true/false    // link is password protected
        }
    ]
}

Error Codes

ids_empty