prevents wrong API params
This commit is contained in:
parent
b3926faa34
commit
9590cc486f
|
@ -27,7 +27,6 @@ import org.mariotaku.microblog.library.twitter.model.StatusUpdate;
|
|||
import org.mariotaku.microblog.library.twitter.template.StatusAnnotationTemplate;
|
||||
import org.mariotaku.restfu.annotation.method.GET;
|
||||
import org.mariotaku.restfu.annotation.method.POST;
|
||||
import org.mariotaku.restfu.annotation.param.KeyValue;
|
||||
import org.mariotaku.restfu.annotation.param.Param;
|
||||
import org.mariotaku.restfu.annotation.param.Params;
|
||||
import org.mariotaku.restfu.annotation.param.Path;
|
||||
|
@ -55,7 +54,6 @@ public interface TweetResources {
|
|||
Status showStatus(@Query("id") String id) throws MicroBlogException;
|
||||
|
||||
@POST("/statuses/update.json")
|
||||
@Params({@KeyValue(key = "tweet_mode", valueKey = "tweet_mode")})
|
||||
Status updateStatus(@Param StatusUpdate latestStatus) throws MicroBlogException;
|
||||
|
||||
@POST("/statuses/lookup.json")
|
||||
|
|
|
@ -25,7 +25,7 @@ import org.mariotaku.restfu.annotation.param.Params;
|
|||
* Created by mariotaku on 16/5/27.
|
||||
*/
|
||||
@Params({@KeyValue(key = "include_my_retweet", valueKey = "include_my_retweet"),
|
||||
@KeyValue(key = "include_rts", valueKey = "include_entities"),
|
||||
@KeyValue(key = "include_rts", valueKey = "include_rts"),
|
||||
@KeyValue(key = "include_entities", valueKey = "include_entities"),
|
||||
@KeyValue(key = "include_cards", valueKey = "include_cards"),
|
||||
@KeyValue(key = "cards_platform", valueKey = "cards_platform"),
|
||||
|
@ -34,8 +34,8 @@ import org.mariotaku.restfu.annotation.param.Params;
|
|||
@KeyValue(key = "include_ext_alt_text", valueKey = "include_ext_alt_text"),
|
||||
@KeyValue(key = "tweet_mode", valueKey = "tweet_mode"),
|
||||
@KeyValue(key = "model_version", valueKey = "model_version"),
|
||||
@KeyValue(key = "include_blocking", value = "true"),
|
||||
@KeyValue(key = "include_blocked_by", value = "true")
|
||||
@KeyValue(key = "include_blocking", valueKey = "include_blocking"),
|
||||
@KeyValue(key = "include_blocked_by", valueKey = "include_blocked_by")
|
||||
})
|
||||
public class StatusAnnotationTemplate {
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ import org.mariotaku.restfu.annotation.param.Params;
|
|||
@Params({@KeyValue(key = "include_entities", valueKey = "include_entities"),
|
||||
@KeyValue(key = "include_cards", valueKey = "include_cards"),
|
||||
@KeyValue(key = "cards_platform", valueKey = "cards_platform"),
|
||||
@KeyValue(key = "include_blocking", value = "true"),
|
||||
@KeyValue(key = "include_blocked_by", value = "true")})
|
||||
@KeyValue(key = "include_blocking", valueKey = "include_blocking"),
|
||||
@KeyValue(key = "include_blocked_by", valueKey = "include_blocked_by")})
|
||||
public class UserAnnotationTemplate {
|
||||
}
|
||||
|
|
|
@ -40,6 +40,8 @@ object MicroBlogAPIFactory {
|
|||
sTwitterConstantPool.put("skip_aggregation", "false")
|
||||
sTwitterConstantPool.put("include_ext_alt_text", "true")
|
||||
sTwitterConstantPool.put("tweet_mode", "extended")
|
||||
sTwitterConstantPool.put("include_blocking", "true")
|
||||
sTwitterConstantPool.put("include_blocked_by", "true")
|
||||
|
||||
sFanfouConstantPool.put("format", "html")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue