Module: LinkshareAPI
- Defined in:
- lib/linkshare_api.rb,
lib/linkshare_api/version.rb,
lib/linkshare_api/response.rb,
lib/linkshare_api/errors/error.rb,
lib/linkshare_api/link_generator.rb,
lib/linkshare_api/product_search.rb,
lib/linkshare_api/coupon_web_service.rb,
lib/linkshare_api/errors/connection_error.rb,
lib/linkshare_api/errors/authentication_error.rb,
lib/linkshare_api/errors/invalid_request_error.rb
Defined Under Namespace
Classes: AuthenticationError, ConnectionError, CouponWebService, Error, InvalidRequestError, LinkGenerator, ProductSearch, Response
Constant Summary collapse
- WEB_SERVICE_URIS =
{ link_generator: "http://getdeeplink.linksynergy.com/createcustomlink.shtml", product_search: "http://productsearch.linksynergy.com/productsearch", coupon_web_service: "http://couponfeed.linksynergy.com/coupon" }
- PARSE_RESULT =
{ link_generator: "item", product_search: "item", coupon_web_service: "link" }
- RESULT =
{ product_search: "result", coupon_web_service: "couponfeed" }
- PAGE_NUMBER =
{ product_search: "PageNumber", coupon_web_service: "PageNumberRequested" }
- VERSION =
"0.2.0"
Class Attribute Summary collapse
-
.api_timeout ⇒ Object
Returns the value of attribute api_timeout.
-
.token ⇒ Object
Returns the value of attribute token.
Class Method Summary collapse
- .coupon_web_service(options = {}) ⇒ Object
- .link_generator(mid, murl) ⇒ Object
- .product_search(options = {}) ⇒ Object
Class Attribute Details
.api_timeout ⇒ Object
Returns the value of attribute api_timeout.
43 44 45 |
# File 'lib/linkshare_api.rb', line 43 def api_timeout @api_timeout end |
.token ⇒ Object
Returns the value of attribute token.
42 43 44 |
# File 'lib/linkshare_api.rb', line 42 def token @token end |
Class Method Details
.coupon_web_service(options = {}) ⇒ Object
62 63 64 65 |
# File 'lib/linkshare_api.rb', line 62 def self.coupon_web_service( = {}) coupon_web_service = LinkshareAPI::CouponWebService.new coupon_web_service.query() end |
.link_generator(mid, murl) ⇒ Object
52 53 54 55 |
# File 'lib/linkshare_api.rb', line 52 def self.link_generator(mid, murl) link_generator = LinkshareAPI::LinkGenerator.new link_generator.build(mid, murl) end |
.product_search(options = {}) ⇒ Object
57 58 59 60 |
# File 'lib/linkshare_api.rb', line 57 def self.product_search( = {}) product_search = LinkshareAPI::ProductSearch.new product_search.query() end |