Ref T13493. At time of writing, the old API method no longer functions: 1/session does not return an accountId but all calls now require one.
Use the modern 3/myself API instead. The datastructure returned by 2/user (older appraoch) and 3/myself (newer approach) is more or less the same, as far as I can tell.