Device solutions
End to end solutions
Product accelerators
Get Started
APIs
IoT Devices
Use getAccount method to retrieve the Personal Cloud Storage account information for a specified user.
getAccount
Code Sample
public void getAccount(OAuthToken token) throws IOException, CloudHttpException { CloudApp app = new CloudApp("appname", "key", "secret", "redirectURI"); CloudClientContext context = new CloudClientContext(app, token); CloudClient client = new CloudClient(context); Account account = client.getAccount(); System.out.println("The account is using " + account.getUsage().getQuotaUsed() + " of " + account.getUsage().getQuota() + " bytes of storage."); }
Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.