you_got_listed 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -2
- data/lib/you_got_listed/client.rb +16 -0
- data/lib/you_got_listed/version.rb +1 -1
- metadata +2 -2
data/README.rdoc
CHANGED
@@ -6,7 +6,7 @@ You must have access to the YouGotListings API via an api key.
|
|
6
6
|
|
7
7
|
Currently the gem supports a subset of the full YouGotListings api and is READ-ONLY wrapper with the exception of creating Leads.
|
8
8
|
|
9
|
-
YouGotListings API documentation can be found here: http://
|
9
|
+
YouGotListings API documentation can be found here: http://support.yougotlistings.com/knowledgebase/articles/224954-ygl-api-general-info
|
10
10
|
|
11
11
|
|
12
12
|
== Installation
|
@@ -15,7 +15,7 @@ YouGotListings API documentation can be found here: http://www.yougotlistings.co
|
|
15
15
|
|
16
16
|
In a rails 3 app
|
17
17
|
|
18
|
-
gem 'you_got_listed', '~> 0.6.
|
18
|
+
gem 'you_got_listed', '~> 0.6.2'
|
19
19
|
|
20
20
|
In a rails 2.3.x app (0.2.x only)
|
21
21
|
|
@@ -11,6 +11,22 @@ module YouGotListed
|
|
11
11
|
self.http_timeout = http_timeout
|
12
12
|
self.class.default_params :key => api_key
|
13
13
|
end
|
14
|
+
|
15
|
+
def listings
|
16
|
+
@listings ||= YouGotListed::Listings.new(self)
|
17
|
+
end
|
18
|
+
|
19
|
+
def leads
|
20
|
+
@leads ||= YouGotListed::Lead.new(self)
|
21
|
+
end
|
22
|
+
|
23
|
+
def agents
|
24
|
+
@agents ||= YouGotListed::Agent.new(self)
|
25
|
+
end
|
26
|
+
|
27
|
+
def accounts
|
28
|
+
@agents ||= YouGotListed::Accounts.new(self)
|
29
|
+
end
|
14
30
|
|
15
31
|
def perform_request(http_method, path, params = {})
|
16
32
|
begin
|