This is a Ruby gem can call Social Blade Business API.
Install the gem and add to the application's Gemfile by executing:
bundle add sb --github=lininglink/sbThis gem is NOT on rubygems.org. Do not run gem install sb or bundle add sb (there is a name of this gem for a different gem)
Environment Variable: SB_CLIENT_ID, SB_CLIENT_TOKEN
With that, you may try following.
params = { query: 'subscribers', page: 0 }
request = Sb::HTTPRequest.new path: "/b/youtube/top", params: params
request.run.bodyOr
params = { query: 'UCEWha6SK0hfU9Mqoo9vNwwA', history: 'archive', 'allow-stale' => false }
request = Sb::HTTPRequest.new path: "/b/youtube/statistics", params: params
request.run.bodyAfter checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests. 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/sb. 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.