createCustomLink

fun createCustomLink(title: String, description: String, resources: Map<String, String>, fields: Map<String, String>, hasUniqueAccess: Boolean = false, expiredTime: CustomRefyLink.ExpiredTime = ExpiredTime.NO_EXPIRATION): JSONObject

Function to execute the request to create a custom link

Return

the result of the request as JSONObject

Parameters

title

: title of the link

description

: description of the link

resources

: the resources to share with the link

fields

: the fields used to protect the resources with a validation form

hasUniqueAccess

: whether the link, when requested for the first time, must be deleted and no more accessible

expiredTime

: when the link expires and automatically deleted