reso_api 1.7.0 → 1.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/reso_api/app/models/reso/api/client.rb +8 -5
- data/lib/reso_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e12a31adb8cbc929ae74c0bac420887da8012d1a2b9383a4559dbf23b1bfd448
|
4
|
+
data.tar.gz: '09c9ef38dc896767bfd6078bab372a9f3408a5ddda293690324122c28b7abfa0'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74c3d7f5312b9aed8f39887a4e63f40e4a8a15026d50f4571015682c1932387a0836ff49c061c50f927e445a90411c08559c31bfaa34c5c5f2d4592e73d46275
|
7
|
+
data.tar.gz: abf99e623fc41c01d3725c4ac5cdddc0b3ffdd3e1f81024196ea48504a3ae4281109b0227626225d85533535e865506cf77557e8b2d4056f84dafa8446288b7f
|
@@ -29,6 +29,7 @@ module RESO
|
|
29
29
|
media: "MediaKey",
|
30
30
|
members: "MemberKey",
|
31
31
|
offices: "OfficeKey",
|
32
|
+
open_houses: "OpenHouseKey",
|
32
33
|
properties: "ListingKey"
|
33
34
|
}
|
34
35
|
|
@@ -36,6 +37,7 @@ module RESO
|
|
36
37
|
medium: "/Media",
|
37
38
|
member: "/Member",
|
38
39
|
office: "/Office",
|
40
|
+
open_house: "/OpenHouse",
|
39
41
|
property: "/Property"
|
40
42
|
}
|
41
43
|
|
@@ -43,6 +45,7 @@ module RESO
|
|
43
45
|
media: "/Media",
|
44
46
|
members: "/Member",
|
45
47
|
offices: "/Office",
|
48
|
+
open_houses: "/OpenHouse",
|
46
49
|
properties: "/Property"
|
47
50
|
}
|
48
51
|
|
@@ -58,9 +61,9 @@ module RESO
|
|
58
61
|
params = {
|
59
62
|
"$select": hash[:select],
|
60
63
|
"$filter": hash[:filter],
|
61
|
-
"$top": hash[:top]
|
64
|
+
"$top": hash[:top].presence,
|
62
65
|
"$skip": hash[:skip],
|
63
|
-
"$orderby": hash[:orderby]
|
66
|
+
"$orderby": hash[:orderby].to_a.presence,
|
64
67
|
"$skiptoken": hash[:skiptoken],
|
65
68
|
"$expand": hash[:expand],
|
66
69
|
"$count": hash[:count].to_s.presence,
|
@@ -109,7 +112,7 @@ module RESO
|
|
109
112
|
client_id,
|
110
113
|
client_secret,
|
111
114
|
token_url: auth_url,
|
112
|
-
scope: scope.presence
|
115
|
+
scope: scope.presence,
|
113
116
|
grant_type: "client_credentials"
|
114
117
|
)
|
115
118
|
end
|
@@ -128,7 +131,7 @@ module RESO
|
|
128
131
|
end
|
129
132
|
|
130
133
|
def fresh_oauth2_payload
|
131
|
-
@oauth2_payload = oauth2_client.client_credentials.get_token('client_id' => client_id, 'client_secret' => client_secret, 'scope' => scope
|
134
|
+
@oauth2_payload = oauth2_client.client_credentials.get_token('client_id' => client_id, 'client_secret' => client_secret, 'scope' => scope.presence)
|
132
135
|
File.write(oauth2_token_path, @oauth2_payload.to_hash.to_json)
|
133
136
|
return @oauth2_payload
|
134
137
|
end
|
@@ -146,7 +149,7 @@ module RESO
|
|
146
149
|
persisted = File.read(oauth2_token_path)
|
147
150
|
payload = OAuth2::AccessToken.from_hash(oauth2_client, JSON.parse(persisted))
|
148
151
|
else
|
149
|
-
payload = oauth2_client.client_credentials.get_token('client_id' => client_id, 'client_secret' => client_secret, 'scope' => scope
|
152
|
+
payload = oauth2_client.client_credentials.get_token('client_id' => client_id, 'client_secret' => client_secret, 'scope' => scope.presence)
|
150
153
|
File.write(oauth2_token_path, payload.to_hash.to_json)
|
151
154
|
end
|
152
155
|
return payload
|
data/lib/reso_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reso_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Edlund
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|