0
votes

I am developing an android application based on One Drive, using the Live SDK. I am stuck on how to get the available and free space for each user.

1

1 Answers

3
votes

From REST, you can get quota and available space for the current signed in user with (details here)

GET https://apis.live.net/v5.0/me/skydrive/quota?access_token=ACCESS_TOKEN

which returns JSON

{ "quota": 26843545600,
  "available": 26805319016 }

So, for Android, based on this reference you can probably just use something like this for this GET call

client.getAsync("me/skydrive/quota", new LiveOperationListener() {
... });