I am using the following code working well to drive a remote device on my network.
$.ajax({ url: \'http://2.162.45.201/api/profile/\'+basicprofile+\'/recall\'