README.md in linkshare_api-0.1.0 vs README.md in linkshare_api-0.2.0
- old
+ new
@@ -97,9 +97,29 @@
end
```
When using the `all` method, `response` object is updated with the data returned by the last API request (last page). `response.all` returns the `data` array.
+### Coupon Web Services
+
+Easy access to coupons and promotional link data for your advertisers using [Coupon Web Service](http://helpcenter.linkshare.com/publisher/questions.php?questionid=865)
+
+```ruby
+# Search for promotion types "Clearance" (id 3) and "Dollar Amount Off" (id 5)
+# from Wal-Mart (id 2149) within category "Apparel - Babies & Kids" (id 3)
+# in the US network (id 1)
+options = {
+ promotiontype: 3|5,
+ mid: 2149,
+ cat: 3,
+ network: 1
+}
+response = LinkshareAPI.coupon_web_service(options)
+response.data.each do |item|
+ # Do stuff
+end
+```
+
### Extra Configuration
* `LinkshareAPI.api_timeout` - the timeout set when initiating requests to LinkShare Web Services (default value is 30 seconds)
## <a id="contributing"></a>Contributing