Skip to content

Instantly share code, notes, and snippets.

@husaynhakeem
Created January 31, 2018 17:01
Show Gist options
  • Save husaynhakeem/a23ac538b17152a85947ec2e0c78e90a to your computer and use it in GitHub Desktop.
Save husaynhakeem/a23ac538b17152a85947ec2e0c78e90a to your computer and use it in GitHub Desktop.
import com.twitter.sdk.android.core.models.Tweet;
import java.util.List;
import io.reactivex.Single;
import retrofit2.http.GET;
import retrofit2.http.Query;
public interface TweetsApi {
@GET("user_timeline.json")
Single<List<Tweet>> getTweets(@Query("screen_name") String screenName,
@Query("trim_user") boolean trimUser,
@Query("tweet_mode") String tweetMode,
@Query("count") int count,
@Query("page") int page);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment