diff options
author | Vitaly Takmazov | 2023-07-19 23:50:14 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-07-19 23:59:40 +0300 |
commit | c576c003716851863c832b5e0dacb9186516f167 (patch) | |
tree | 420c517806d28db3c8f448eacbc3d61f01106629 /src/main/java/com/juick/service/UserService.java | |
parent | 128753a9bd11e09940d58d97c67db59a15251b71 (diff) |
Migrate to Twitter API 2.0
Diffstat (limited to 'src/main/java/com/juick/service/UserService.java')
-rw-r--r-- | src/main/java/com/juick/service/UserService.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/com/juick/service/UserService.java b/src/main/java/com/juick/service/UserService.java index 4acc5b6a..31822b01 100644 --- a/src/main/java/com/juick/service/UserService.java +++ b/src/main/java/com/juick/service/UserService.java @@ -104,7 +104,11 @@ public interface UserService { List<User> getUserIgnoredUsers(int uid); List<User> getUserVipUsers(int uid); @CacheEvict(value = "twitter_user", key="{ #user.getUid() }") - boolean linkTwitterAccount(User user, String accessToken, String accessTokenSecret, String screenName); + boolean linkTwitterAccount(User user, String accessToken, String refreshToken, String screenName); + + boolean refreshTwitterToken(User user, String accessToken, String refreshToken); + + boolean isTwitter1User(User user); int getStatsMessages(int uid); |