Permalink
Browse files

update README

  • Loading branch information...
1 parent 89d2ee0 commit 40f5a6e9afbc8438035fe3ae66e78001f707297f @elvuel committed Oct 6, 2010
Showing with 18 additions and 0 deletions.
  1. +18 −0 README.rdoc
View
@@ -5,8 +5,26 @@
* 请自行安装好ruby环境
* 安装Crack, 位于http://github.com/jnunemaker/crack
* 在设置 base_setting.rb 中,设定你所申请的APP_KEY及APP_SECRET
+ * 使用 include Elvuel::OpenTaobao
* 添加所需要使用的开放平台api到api.rb文件中(请参照已有示例,另外 params中 *字符为必需项 !字符为上传)
+== 示例
+ *
+ include Elvuel::OpenTaobao
+ Base::Setting.app_env = "production"
+ Base::Setting.app_type = "client"
+
+ ...
+ req = TBTaobaokeItemsGet.new
+ req.fields = "nick"
+ req.keyword = "iphone"
+ req.nick = "elvuel"
+ req.area = "上海"
+ req.start_credit = "4diamond"
+ req.end_credit = "5goldencrown"
+ req.send_request
+ ...
+
== LICENSE:
The same license as Ruby. * Currently no support, no warranty *.

0 comments on commit 40f5a6e

Please sign in to comment.