groupevite 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/groupevite.rb +5 -5
- data/lib/groupevite/version.rb +1 -1
- metadata +2 -2
data/lib/groupevite.rb
CHANGED
|
@@ -4,7 +4,7 @@ require 'hashie'
|
|
|
4
4
|
module Groupevite
|
|
5
5
|
|
|
6
6
|
class Groupon
|
|
7
|
-
BASE_URI = 'http://api.groupon.com/v2/deals'
|
|
7
|
+
BASE_URI = 'http://api.groupon.com/v2/deals/'
|
|
8
8
|
|
|
9
9
|
# Initialize a new instance with your client id when you signed up for access to the Groupon API
|
|
10
10
|
def initialize(client_id)
|
|
@@ -20,19 +20,19 @@ module Groupevite
|
|
|
20
20
|
# Return the detailed information about a specific Groupon deal
|
|
21
21
|
# http://api.groupon.com/v2/deals/<id>{.json|.xml}
|
|
22
22
|
def getaway(deal_id)
|
|
23
|
-
Hashie::Mash.new(HTTParty.get(BASE_URI +
|
|
23
|
+
Hashie::Mash.new(HTTParty.get(BASE_URI + deal_id + '?client_id=' + @client_id))
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
# Return a list of images for a specific Groupon deal
|
|
27
27
|
# https://api.groupon.com/v2/deals/<deal-id>/images{.json|xml}
|
|
28
28
|
def getaway_images(deal_id)
|
|
29
|
-
Hashie::Mash.new(HTTParty.get(BASE_URI +
|
|
29
|
+
Hashie::Mash.new(HTTParty.get(BASE_URI + deal_id + '/images?client_id=' + @client_id))
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
# Return a list of discussions for a specifid Groupon deal
|
|
33
33
|
# http://api.groupon.com/v2/deals/<deal-id>/posts{.json|.xml}
|
|
34
|
-
def
|
|
35
|
-
Hashie::Mash.new(HTTParty.get(BASE_URI +
|
|
34
|
+
def getaway_comments(deal_id)
|
|
35
|
+
Hashie::Mash.new(HTTParty.get(BASE_URI + deal_id + '/posts?client_id=' + @client_id))
|
|
36
36
|
end
|
|
37
37
|
end
|
|
38
38
|
end
|
data/lib/groupevite/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: groupevite
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-04-
|
|
12
|
+
date: 2013-04-02 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: Groupon API wrapper for Groupevite.com
|
|
15
15
|
email:
|