params.put("scope", singletonList(join(tokenRequest.getScopes(), " ")));
params.put("grant_type", singletonList("client_credentials"));
return bees.formUrlEncoded(gcUrl+"/oauth/token", null, params).bind(OauthToken.class,bees);
} catch (IOException e) {
throw new OauthClientException("Failed to create OAuth token from OAuth client ID&secret",e);
}
}