API impl for initOauth and getAvailableSpace service