Uri.Builder b = Uri.parse(TOKEN_SERVICE_URL).buildUpon();
if (newClientProfile.isAllowOutgoing()) {
b.appendQueryParameter("allowOutgoing", newClientProfile.allowOutgoing ? "true" : "false");
}
if (newClientProfile.isAllowIncoming() && newClientProfile.getName() != null) {
b.appendQueryParameter("client", newClientProfile.getName());
}
Ion.with(getApplicationContext())
.load(b.toString())
.asString()
.setCallback(new FutureCallback<String>() {
@Override
public void onCompleted(Exception e, String capabilityToken) {
I got the capability token from my web service, In twilio quickstart example they are using TOKEN_SERVICE_URL
to generate a token. Now I don't know how to use this method to validate clientProfile
with the capabilities inside the token. Please help me