Project

assaydepot

0.0
No commit activity in last 3 years
No release in over 3 years
The Scientist Ruby SDK. It provides read access to Services and Suppliers through scientist.com's JSON API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0

Runtime

>= 0
>= 0
 Project Readme

Scientist.com

Ruby interface for Scientist.com's (formerly Assay Depot's) research services marketplace (http://www.scientist.com).

Scientist.com Developer Program

An authentication token is required for the API to function. If you would like access to the API, please email support@scientist.com.

Installation

Add this line to your application's Gemfile:

gem 'assaydepot'

And then execute:

$ bundle

Or install it yourself as:

$ gem install assaydepot

Basic Usage

Storefront

require 'assaydepot'
AssayDepot.configure do |config|
  config.access_token = "1234567890"
  config.url = "https://app.scientist.com"
end
wares = AssayDepot::Ware.find("Antibody")
wares.total

Backoffice

require 'assaydepot'
AssayDepot.configure do |config|
  config.access_token = "1234567890"
  config.url = "https://backoffice.scientist.com"
end
quoted_ware = AssayDepot::QuotedWare.get()

API Documentation

See the Scientist.com API documentation for details on the Scientist.com API resources and code examples using this SDK.

Using Facets

wares = AssayDepot::Ware.where(:ware_type => "CustomService")
wares.facets

Chainable Commands

wares = AssayDepot::Ware.where(:ware_type => "CustomService").where(:available_provider_names => "Assay Depot").page(2)
wares.first["name"]

Providers

providers = AssayDepot::Provider.where(:starts_with => "a").per_page(50)
providers.count

Get Details

providers = AssayDepot::Provider.where(:starts_with => "a")
AssayDepot::Provider.get(id: providers.first["id"])

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

The Scientist.com Ruby SDK is released under the MIT license.