module TikToker::Util
Defined in:
tiktoker/util.crClass Method Summary
-
.build_profile_url(username, language = "en")
Builds a
TikTok::UserProfile
URL. -
.generate_did : String
Generates a random TikTok did (device ID).
- .retry_on_connection_error(&)
Class Method Detail
def self.build_profile_url(username, language = "en")
#
Builds a TikTok::UserProfile
URL. Used to extract user info directly
from the portal.
TikTok::Util.build_profile_url("username")
# => https://www.tiktok.com/@username?lang=en
def self.generate_did : String
#
Generates a random TikTok did (device ID). Keep in mind that this token is supposed to be long-lived and consistent between requests.
TikTok::Util.generate_did # => 3745502480601580487