get_devices function

Get a list of the user's registered devices