This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| protected String[] doInBackground(String... credentials) { | |
| String consumer_secret = mActivity.getString(R.string.oauth_consumer_secret); | |
| HttpClient client = new DefaultHttpClient(); | |
| HttpPost request = new HttpPost("https://www.instapaper.com/api/1/oauth/access_token"); | |
| CommonsHttpOAuthConsumer consumer = new CommonsHttpOAuthConsumer(mActivity.getString(R.string.oauth_consumer_key), | |
| consumer_secret); | |
| List<BasicNameValuePair> params = Arrays.asList( | |
| new BasicNameValuePair("x_auth_username", credentials[0]), | |
| new BasicNameValuePair("x_auth_password", credentials[1]), | |
| new BasicNameValuePair("x_auth_mode", "client_auth")); |
NewerOlder