when trying to set writing access in the scope I receive the application need permission
webView.loadUrl("https://stackoverflow.com/oauth/dialog?client_id=19361&redirect_uri=https://stackexchange.com/oauth/login_success&scope=no_expiry,private_info,read_inbox,write_access"); webView.getSettings().setJavaScriptEnabled(true); webView.setWebViewClient(new WebViewClient(){ @Override public void onPageStarted(WebView view, String url, Bitmap favicon) { if(url.contains("https://stackexchange.com/oauth/login_success#access_token=")){ String code=url.replace("https://stackexchange.com/oauth/login_success#access_token=",""); Intent intent = new Intent(getApplicationContext(), MainActivity.class); intent.putExtra("accessToken",code); startActivity(intent); } System.out.println(url); super.onPageStarted(view, url, favicon); } });
https://stackoverflow.com/questions/65386342/how-can-get-writing-access-in-stackapps December 21, 2020 at 09:03AM
没有评论:
发表评论