This is a Ruby gem can call TikTok API.
Install the gem and add to the application's Gemfile by executing:
bundle add tiktok --github=lininglink/tiktokThis gem is not on rubygems.org. Do not run gem install tiktok or bundle add tiktok (there is a name of this gem for a different gem)
Tiktok::Querytakes access_token.Tiktok::Query#fetch_accountreturns aTiktok::Accountobject.
query = Tiktok::Query.new(access_token: "act.SmSfTu7...")
account = query.fetch_account
account.display_nameAfter checking out the repo, run bin/setup to install dependencies. You can also run bin/console for an interactive prompt that will allow you to experiment.
Bug reports and pull requests are welcome on GitHub at https://github.com/lininglink/tiktok. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the Tiktok project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.