Project

dangdang

0.0
No commit activity in last 3 years
No release in over 3 years
Ruby SDK for open.dangdang.com
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
~> 10.0

Runtime

~> 0.0.1
= 0.1.8
 Project Readme

Dangdang

========= Dangdang Open Platform(当当开放平台) API in Ruby

Gem Version

Installation

Add this line to your application's Gemfile:

gem 'dangdang'

And then execute:

$ bundle

Or install it yourself as:

$ gem install dangdang

Usage

Initialize

a = Dangdang::Order.new(
  app_key: "1111111111",
  app_secret: "AAAAAAAA11111111BBBBBBBB22222222",
  session_key: "AAAAAAAA11111111AAAAAAAABBBBBBBBCCCCCCCCDDDDDDDDYYYYYYYYZZZZZZZZ"
)

Orders List:

"dangdang_orders_list_get" method params reference

Example:

# You can only fetch orders paid from Dangdang Open Platform in current time when using 'osd oed' submitted params.
a.dangdang_orders_list_get(
  osd: "2014-11-25 00:00:00",
  oed: "2014-11-26 16:30:00"
)

a.dangdang_orders_list_get(os: "100")

a.dangdang_order_list_get(o: "11111111111")

Order Details:

"dangdang_order_details_get" method params reference

Example:

a.dangdang_order_details_get(o: "11111111111")