Get an Auth Token

TokenResponse token = context.oauth()
    .tokenFromClientCredentials(asList(ALL));

The Veem API uses OAuth 2.0 bearer tokens. By associating an account with your application when you create it in the Veem Developer Sandbox, you can use the two-legged OAuth flow to create a token for that account. The Veem API (and SDK) also supports three-legged OAuth flow.

Now we’re ready to create a VeemClient.