UBER with SSO using uber rides-android-sdk -
i'm trying data all_trips scope. i'm running few issues.
1) once add scope.all_trips .setscopes
redirected verse being able login obtain token, therefore necessary data currentride()
method.
configuration = new sessionconfiguration.builder() .setclientid(client_id) .setredirecturi(redirect_uri) .setscopes(arrays.aslist(scope.history, scope.profile, scope.ride_widgets, scope.all_trips)) .setenvironment(sessionconfiguration.environment.sandbox) .build(); validateconfiguration(configuration);
error: webpage not available webpage @ market://details?hl-en&id=com.ubercab&referrer=mat_cli%3
and goes on , one.
once remove all_trips scope ability sign in.
any great can move forward getting details driver, vehicle, rideid.
private void loadalltrips(){ session session = loginmanager.getsession(); ridesservice alltrips = uberridesapi.with(session).build().createservice(); alltrips.getcurrentride().enqueue(new callback<ride>() { @override public void onresponse(call<ride> call, response<ride> response) { if (response.issuccessful()) { toast.maketext(loginsampleactivity.this, response.body().getrideid(), toast.length_long).show(); } else { apierror error = errorparser.parseerror(response); toast.maketext(loginsampleactivity.this, error.getclienterrors().get(0).gettitle(), toast.length_long).show(); } } @override public void onfailure(call<ride> call, throwable t) { } }); }
Comments
Post a Comment