module

Likee::Client::ActivityFlowEndpoints

Constants

BASE_URL = "https://api.like-video.com"
USER_POSTS_COUNT = "/likee-activity-flow-micro/userApi/getUserPostNum"
USER_VIDEOS = "/likee-activity-flow-micro/videoApi/getUserVideo"

Instance methods

user_posts_count(user_id : String) : UserPostsCount | Nil

Gets the posts count of the given user.

user_info = Likee.user_posts_count(user_id: "1111")

user_info.videos_count  # => 550
user_info.likes_count   # => 1_000_000
user_info.moments_count # => 22
Source
user_videos(user_id : String, last_post_id = "", limit = 30) : Array(Video)

Gets a collection of videos published by the given user.

The parameters last_post_id (as in, offset) and limit may be used to paginate through the user profile.

videos = Likee.user_videos(user_id: "111")
videos.count # => 30
Source