manage Link

fun manageLink(link: T? = null, onSuccess: () -> Unit)

Wrapper function to execute the request to create or edit a link

Parameters

link

: the link to edit if passed, null if it to be created

onSuccess

: the action to execute if the request has been successful