Project

scrubdeku

0.0
No commit activity in last 3 years
No release in over 3 years
Simplifies interaction with the SellerCloud SOAP API to enable faster development of integrations.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 2.0, ~> 2.0
 Project Readme

scrubdeku

SCRuB (gem name scrubdeku) is a Ruby gem to ease integration with the SellerCloud platform by providing a simple wrapper around the SellerCloud SOAP API.

To get started, require the gem 'scrubdeku' in your project.

require 'scrubdeku'

To create a new SellerCloud Client, create a new Scrub::SCClient object, passing it the SellerCloud address, username, and password.

scclient = Scrub::SCClient.new("http://tt.ws.sellercloud.com", "your.email@yourcompany.com", "hunter2")

Currently implements the following methods in SCClient:

generalRaw and inventoryRaw are used to make direct calls to the SellerCloud API, either internally (most methods call ther appropriate raw method) or if there is a needed method that hasn't been implemented yet. scclient.generalRaw(:api_call, {messageString => messageVar})

order_data(orderNumber) returns a hash of the complete API response for a given integer order number.

```getWarehouseInventory(warehouseid, page)```` returns per-page results for the SKUs in a given warehouse.

getWarehouseInventoryList(warehouseid) returns the array of all item SKUs in a given warehouse identified by warehouseid.

getAllWarehouseSkuList(warehouseArray) returns the list of all SKUs in the given warehouses.

getSkuInventoryAllWarehouses(sku) returns hash of warehouse inventory data for sku

getAllWarehousesInventoryTable(skuTable, threads) returns a hash of inventory data for all skus in array skuTable, using threads workers to make it somewhat faster.

getInventoryByWarehouse(warehouse, sku) singular version of getSkuInventoryAllWarehouses

getProductNameFromSku(sku) does exactly what it says on the tin