Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public interface CoubApi {
- @PUT("users/add_device_token")
- @Multipart
- ddb<JsonElement> addDeviceToken(@Part("device_token") String str);
- @POST("channels/add_auth")
- ddb<AuthDataVO> addSocialAuth(@Body FetchOAuthDataResponse fetchOAuthDataResponse);
- @POST("favourites")
- ddb<Status> addToBookmarks(@Query("id") int i);
- @PUT("users/change_channel")
- @Multipart
- ddb<ChangeChannelVO> changeChannel(@Part("channel_id") int i);
- @GET("coubs/{permalink}/finalize_status")
- ddb<CoubProcessingCheckStatus> checkCoubProcessing(@Path("permalink") String str);
- @GET("sessions/check_uniqueness")
- ddb<CheckUniquenessResponse> checkUniqueness(@Query("session[email]") String str, @Query("session[phone_number]") String str2, @Query("session[provider]") String str3, @Query("session[uid]") String str4);
- @GET("coubs/{permalink}/segments")
- ddb<SegmentsVO> coubSegments(@Path("permalink") String str);
- @POST("channels")
- @Multipart
- ddb<Object> createChannel(@Part("channel[title]") String str);
- @DELETE("channels/delete_channel")
- ddb<Status> deleteActiveChannel(@Query("id") int i, @Query("password") String str);
- @DELETE("channels/{channel_id}/backgrounds")
- ddb<Status> deleteChannelBackground(@Path("channel_id") int i);
- @DELETE("coubs/{id}")
- ddb<Status> deleteCoub(@Path("id") String str);
- @DELETE("abuses/{id}")
- ddb<Status> deleteCoubFlag(@Path("id") int i);
- @GET("channels/{channel_id}/edit")
- ddb<EditChannelResponse> editChannel(@Path("channel_id") int i);
- @GET("channels/{channel_permalink}/edit")
- ddb<EditChannelResponse> editChannel(@Path("channel_permalink") String str);
- @GET("sessions/fetch_oauth_data")
- ddb<FetchOAuthDataResponse> fetchOauthData(@Query("provider") String str, @Query("token") String str2, @Query("uid") String str3, @Query("secret") String str4);
- @GET("friends/find")
- ddb<ProviderFriendListVO> findFriendsFromProvider(@Query("providers") ArrayList<String> arrayList);
- @POST("abuses")
- ddb<AbuseStatus> flagCoub(@Query("reason") String str, @Query("entity_id") int i, @Query("entity_type") String str2);
- @POST("follows/follow_all_friends_from_provider")
- ddb<Status> followAllFriendsFromProvider();
- @POST("follows")
- ddb<Status> followChannel(@Query("id") int i);
- @POST("follows")
- ddb<Status> followChannel(@Query("id") int i, @Query("channel_id") int i2);
- @GET("friends")
- ddb<JsonObject> getAllFriendsPage(@Query("page") int i);
- @GET("best/{year}/{type}")
- ddb<CoubsResponse> getBestFeedPage(@Path("year") int i, @Path("type") String str, @Query("page_of") int i2, @Query("per_page") int i3, @Query("api_token") String str2);
- @GET("best/{year}/{type}")
- ddb<CoubsResponse> getBestFeedPage(@Path("year") int i, @Path("type") String str, @Query("page") int i2, @Query("api_token") String str2);
- @GET("timeline/favourites")
- ddb<CoubsResponse> getBookmarksFeedPage(@Query("order_by") String str, @Query("page") int i, @Query("per_page") int i2);
- @GET("channels/{id}")
- ddb<ChannelVO> getChannel(@Path("id") int i);
- @GET("channels/{id}/by_permalink")
- ddb<ChannelVO> getChannel(@Path("id") String str);
- @GET("timeline/channel/{id}")
- ddb<CoubsResponse> getChannelFeedPage(@Path("id") String str, @Query("coubs_type") Caa caa, @Query("order_by") String str2, @Query("page") int i, @Query("per_page") int i2);
- @GET("timeline/channel/{id}")
- ddb<CoubsResponse> getChannelFeedPageWithStartCoub(@Path("id") String str, @Query("coubs_type") Caa caa, @Query("order_by") String str2, @Query("page_of") int i, @Query("per_page") int i2);
- @GET("timeline/{path}")
- ddb<CoubsResponse> getCommonFeedPage(@Path(encoded = true, value = "path") String str, @Query("order_by") String str2, @Query("page") int i, @Query("per_page") int i2);
- @GET("timeline/{path}")
- ddb<CoubsResponse> getCommonFeedPageWithStartCoub(@Path(encoded = true, value = "path") String str, @Query("order_by") String str2, @Query("per_page") int i, @Query("page_of") int i2);
- @GET("coubs/{coub_id}")
- ddb<CoubVO> getCoub(@Path("coub_id") int i);
- @GET("coubs/{permalink}")
- ddb<CoubVO> getCoub(@Path("permalink") String str);
- @GET("search/coubs")
- ddb<CoubsResponse> getCoubSearchFeedPage(@Query("q") String str, @Query("order_by") String str2, @Query("page") int i, @Query("per_page") int i2);
- @GET("search/coubs")
- ddb<CoubsResponse> getCoubSearchFeedPageWithStartCoub(@Query("q") String str, @Query("order_by") String str2, @Query("per_page") int i, @Query("page_of") int i2);
- @GET("channels/editorial_channels")
- ddb<ChannelVO[]> getEditorialChannelList();
- @GET("channels/featured_channels")
- ddb<ChannelsResponse> getFeaturedChannels(@Query("page") int i, @Query("ids_list") String str);
- @GET("action_subjects_data/followers_list")
- ddb<ChannelsResponse> getFollowersPage(@Query("id") int i, @Query("page") int i2);
- @GET("action_subjects_data/followings_list")
- ddb<ChannelsResponse> getFollowingPage(@Query("id") int i, @Query("page") int i2);
- @GET("friends")
- ddb<FriendsResponse> getFriendsPage(@Query("page") int i, @Query("provider") String str);
- @GET("friends/friends_to_follow")
- ddb<JsonObject> getFriendsToFollow(@Query("type") String str, @Query("count") int i);
- @GET("action_subjects_data/coub_likes_list")
- ddb<ChannelsResponse> getLikersPage(@Query("id") int i, @Query("page") int i2);
- @GET("timeline/likes?all=true")
- ddb<CoubsResponse> getLikesFeedPage(@Query("order_by") String str, @Query("page") int i, @Query("per_page") int i2);
- @GET("timeline/likes?all=true")
- ddb<CoubsResponse> getLikesFeedPageWithStartCoub(@Query("order_by") String str, @Query("per_page") int i, @Query("page_of") int i2);
- @GET("timeline")
- ddb<CoubsResponse> getMainFeedPage(@Query("page") int i, @Query("per_page") int i2);
- @GET("notifications")
- ddb<NotificationResponse> getNotificationPage(@Query("page") int i);
- @GET("friends/recommended")
- ddb<FriendsResponse> getRecommendedFriendsPage(@Query("page") int i);
- @GET("action_subjects_data/recoubs_list")
- ddb<ChannelsResponse> getRecoubersPage(@Query("id") int i, @Query("page") int i2);
- @GET("tags/{tag}/related_channels")
- ddb<ChannelsResponse> getRelatedChannelsPageByTag(@Path("tag") String str, @Query("page") int i);
- @GET("tags/{tag}/related_tags")
- ddb<TagsPage> getRelatedTagsByTag(@Path("tag") String str);
- @GET("sessions/status")
- ddb<SessionVO> getSession();
- @GET("coubs/{permalink}/category_suggestions")
- ddb<CoubSuggestionAnswer> getSuggestions(@Path("permalink") String str, @Query("count") int i);
- @GET("timeline/tag/{tag}")
- ddb<CoubsResponse> getTagFeedPage(@Path("tag") String str, @Query("order_by") String str2, @Query("page") int i, @Query("per_page") int i2);
- @GET("timeline/tag/{tag}")
- ddb<CoubsResponse> getTagFeedPageWithStartCoub(@Path("tag") String str, @Query("order_by") String str2, @Query("per_page") int i, @Query("page_of") int i2);
- @GET("friends")
- ddb<FriendsResponse> getUnfollowedFriendsPage(@Query("page") int i, @Query("provider") String str, @Query("omit_following") boolean z);
- @GET("weekly_digests/")
- ddb<WeeklyVO> getWeeklyDigests();
- @GET("weekly_digests/{week}/coubs")
- ddb<CoubsResponse> getWeeklyFeedPage(@Path("week") int i, @Query("api_token") String str, @Query("page") int i2);
- @POST("follows/mass_follow")
- @Multipart
- ddb<Status> massFollow(@Part("ids_list[following][]") String[] strArr, @Part("ids_list[not_following]") String[] strArr2);
- @POST("channels/notifications_viewed")
- ddb<Object> notifyNotificationsViewed();
- @PUT("passwords/recover_password")
- @Multipart
- ddb<Status> recoverPassword(@Part("session[email]") String str);
- @DELETE("favourites")
- ddb<Status> removeFromBookmarks(@Query("id") int i);
- @DELETE("channels/remove_auth")
- ddb<AuthDataVO> removeSocialAuth(@Query("id") int i, @Query("session[provider]") String str);
- @PUT("passwords/reset_password")
- @Multipart
- ddb<UserVO> resetPasswordRequest(@Part("email") String str, @Part("confirmation_token") String str2, @Part("password") String str3);
- @PUT("channels/{channel_id}/backgrounds/set_previous")
- ddb<Status> restorePreviousBackground(@Path("channel_id") int i);
- @GET("search/autocomplete")
- ddb<SearchAutocompleteVO> searchAutocomplete(@Query("q") CharSequence charSequence);
- @GET("search/channels?order_by=likes_count")
- ddb<ChannelPage> searchChannels(@Query("q") String str, @Query("page") int i);
- @GET("search/coubs")
- ddb<CoubsPage> searchCoubs(@Query("q") String str, @Query("page") int i);
- @GET("search/coubs")
- ddb<CoubsPage> searchCoubs(@Query("q") String str, @Query("order_by") String str2, @Query("page") int i);
- @GET("tags/search?order_by=likes_count")
- ddb<List<TagVO>> searchTags(@Query("title") String str);
- @POST("channels/{channel_id}/backgrounds")
- ddb<Status> setChannelBackgroundCoub(@Path("channel_id") int i, @Query("background[coub]") String str, @Query("background[offset_y]") int i2);
- @POST("channels/{channel_id}/backgrounds")
- @Multipart
- ddb<Status> setChannelBackgroundImage(@Path("channel_id") int i, @Part C13354b bVar);
- @POST("likes")
- ddb<Status> setLike(@Query("id") int i, @Query("channel_id") int i2, @Query("source") String str, @Deprecated @Query("type") String str2);
- @POST("recoubs")
- ddb<Status> setRecoubCoub(@Query("recoub_to_id") int i, @Query("channel_id") int i2);
- @PUT("sessions/signin")
- ddb<UserVO> signIn(@Body FetchOAuthDataResponse fetchOAuthDataResponse);
- @POST("sessions/signup")
- ddb<UserVO> signUp(@Body FetchOAuthDataResponse fetchOAuthDataResponse);
- @POST("channel_notifications_subscriptions")
- ddb<Status> subscribeToChannelNotifications(@Query("channel_id") int i);
- @DELETE("follows")
- ddb<Status> unFollowChannel(@Query("id") int i);
- @DELETE("follows")
- ddb<Status> unFollowChannel(@Query("id") int i, @Query("channel_id") int i2);
- @DELETE("likes")
- ddb<Status> unsetLike(@Query("id") int i, @Query("channel_id") int i2, @Deprecated @Query("type") String str);
- @DELETE("recoubs")
- ddb<Status> unsetRecoubCoub(@Query("id") int i, @Query("channel_id") int i2);
- @DELETE("channel_notifications_subscriptions")
- ddb<Status> unsubscribeFromChannelNotifications(@Query("channel_id") int i);
- @PUT("channels/update_info")
- @Multipart
- ddb<ChannelVO> updateChannelInfo(@Part("id") int i, @Part("channel[title]") String str, @Part("channel[description]") String str2, @Part("channel[homepage]") String str3, @Part("channel[youtube]") String str4, @Part("channel[tumblr]") String str5, @Part("channel[vimeo]") String str6, @Part("channel[autopost_coub_to_facebook]") boolean z, @Part("channel[autopost_recoub_to_facebook]") boolean z2, @Part("channel[autopost_coub_to_twitter]") boolean z3, @Part("channel[autopost_recoub_to_twitter]") boolean z4, @Part("channel[autopost_coub_to_vkontakte]") boolean z5, @Part("channel[autopost_recoub_to_vkontakte]") boolean z6, @Part("channel[hide_owner]") boolean z7);
- @POST("coubs/{permalink}/update_info")
- @Multipart
- ddb<CoubVO> updateCoubInfo(@Path("permalink") String str, @Part("id") String str2, @Part("coub[channel_id]") int i, @Part("coub[title]") String str3, @Part("coub[tags]") String str4, @Part("coub[original_visibility_type]") String str5, @Part("coub[categories][]") String[] strArr);
- @PUT("users/update_phone_number")
- ddb<JsonObject> updatePhoneNumber();
- @PUT("users/update_phone_number")
- @Multipart
- ddb<JsonObject> updatePhoneNumber(@Part("token") String str, @Part("provider") String str2);
- @PUT("users/update_private_info")
- @Multipart
- ddb<Status> updatePrivateInfo(@Part("user[password]") String str, @Part("user[password_changing]") String str2);
- @PUT("users/update_regular_info")
- @Multipart
- ddb<SessionVO> updateRegularInfo(@Part("user[email]") String str, @Part("user[sex]") String str2, @Part("user[birthday]") String str3, @Part("user[password]") String str4, @Part("user[city]") String str5);
- @POST("channels/upload_avatar")
- @Multipart
- ddb<ChannelVO> uploadAvatar(@Part C13354b bVar, @Part("channel[id]") int i);
- @POST("upload/video")
- @Multipart
- ddb<UploadVideoStatus> uploadVideo(@Part("url") String str);
- @GET("upload/video/{id}/status")
- ddb<Data> uploadVideoStatus(@Path("id") String str);
- @GET("channels/validate_permalink")
- ddb<PermalinkCheckStatus> validateChannelPermalink(@Query("channel[permalink]") String str);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement