Back to project page ReadabilitySDK.
The source code is released under:
MIT License
If you think the Android project ReadabilitySDK listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.idemidov.readability.command; /*w w w .j av a 2 s. c o m*/ import com.idemidov.readability.data.User; import com.idemidov.readability.parser.GetUserCurrentParser; import com.idemidov.readability.parser.Parser; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpUriRequest; import org.json.JSONException; import java.io.UnsupportedEncodingException; import oauth.signpost.OAuthConsumer; import oauth.signpost.commonshttp.CommonsHttpOAuthConsumer; import oauth.signpost.exception.OAuthCommunicationException; import oauth.signpost.exception.OAuthExpectationFailedException; import oauth.signpost.exception.OAuthMessageSignerException; /** * Created by Ilya on 26/02/14. */ public class GetUserCurrentCommand extends BaseCommand<User> { public GetUserCurrentCommand(OAuthConsumer consumer) { super(consumer); } @Override Parser<User> getParser() { return new GetUserCurrentParser(); } @Override String getUrl() { return ROOT_URL.concat("users/_current"); } @Override HttpUriRequest getHttpUriRequest() { HttpGet get = new HttpGet(getUrl()); return get; } }