There's a lot of open issues
An API wrapper for Datashake API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.2
 Project Readme

Datashake Ruby SDK Build status Gem Version

An API wrapper written in ruby for Datashake API https://docs.datashake.com/

Installation

Install the gem and add to the application's Gemfile by executing:

$ bundle add datashake-ruby-sdk

If bundler is not being used to manage dependencies, install the gem by executing:

$ gem install datashake-ruby-sdk

Usage

client = Datashake::ReviewScaper::Client.new(token: 'your-api-token')

response = client # Add a review profile by url
  .add_profile
  .url("https://www.amazon.com/dp/B003YH9MMI")
  .from_date("2021-01-01")
  .fetch

response.success => true
response.job_id => 346998013
response.status => 200
response.message => "Added this profile to the queue..."

client # Add a review profile by google search query
  .add_profile
  .query("I-80 Towing & Service, 1209 S 3rd St, Laramie, WY 82070, USA")
  .fetch

client.info.job_id(346998013).fetch # Fetch job details

client.reviews.job_id(346998013).page(2).per_page(10).fetch # Fetch reviews for the given job
client = Datashake::ReviewIndex::Client.new(token: 'your-api-token')

response = client # Get reviews from RIAPI
  .reviews
  .callback("https://myserver.com/callbacks/reviews")
  .name("McDonalds")
  .city("Tbilisi")
  .fetch

response.success => true
response.request_id => "1665992737596342636-004fd578-fd32-41"
response.status => 201
response.message => "Your task was successfully submitted."

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

This gem uses standardrb for code style. Just write your code and run bundle exec rake standard:fix.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and the created tag, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/reviewshake/datashake-ruby-sdk.

Release

Bump the version number in https://github.com/reviewshake/datashake-ruby-sdk/blob/main/lib/datashake-ruby-sdk/version.rb, create a release with github and a tag from the new version number. After doing the github release, build the gem (gem build) from your terminal and push (gem push) the new version rubygems https://rubygems.org/gems/datashake-ruby-sdk. You need to be a gem owner in order to do this.

License

The gem is available as open source under the terms of the MIT License.