README.md in assaydepot-0.0.5 vs README.md in assaydepot-0.1.1

- old
+ new

@@ -1,12 +1,12 @@ -# Assay Depot ![Build Status](https://secure.travis-ci.org/assaydepot/assaydepot-rb.png) [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/assaydepot/assaydepot-rb) +# Scientist.com -Ruby interface for Assay Depot's online laboratory (http://www.assaydepot.com). +Ruby interface for Scientist.com's (formerly Assay Depot's) research services marketplace (http://www.scientist.com). -## Assay Depot Developer Program +## Scientist.com Developer Program -An authentication token is required for the API to function. If you would like access to the API, please email cpetersen@assaydepot.com. +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: @@ -20,20 +20,36 @@ $ gem install assaydepot ## Basic Usage +### Storefront + ```ruby require 'assaydepot' AssayDepot.configure do |config| config.access_token = "1234567890" - config.url = "https://www.assaydepot.com/api" + config.url = "https://app.scientist.com" end wares = AssayDepot::Ware.find("Antibody") wares.total ``` +### Backoffice + +```ruby +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](https://assaydepot.github.io/scientist_api_docs/#introduction) for details on the Scientist.com API resources and code examples using this SDK. + ## Using Facets ```ruby wares = AssayDepot::Ware.where(:ware_type => "CustomService") wares.facets @@ -54,11 +70,11 @@ ``` ## Get Details ```ruby providers = AssayDepot::Provider.where(:starts_with => "a") -AssayDepot::Provider.get(providers.first["id"]) +AssayDepot::Provider.get(id: providers.first["id"]) ``` ## Contributing 1. Fork it @@ -67,6 +83,6 @@ 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request ## License -The Assay Depot Ruby SDK is released under the MIT license. +The Scientist.com Ruby SDK is released under the MIT license.