Drupal User ID Token
The example calls $result = civicrm_api('UFMatch', 'get', $params); to get the Drupal user id that it passes to user_load() to get the rest of the  user info.

If you just want the id then it is the value being passed to user_load(): 

$result['values'][0]['uf_id'])