immobilienscout 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +6 -6
- data/README.md +5 -0
- data/lib/immobilienscout/api/property.rb +19 -0
- data/lib/immobilienscout/request.rb +1 -1
- data/lib/immobilienscout/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: 57f34d7a68110485b5a07d4b36e5232f1422199a80d592eefbdc10f326704627
|
4
|
+
data.tar.gz: 6d75ad272e6232fef423e911f6f11f7d85edd70f24cfe43ce7bad4a9e8ccae63
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdd687dd9618b57efbeccb0b0dd943726d153127ed63e4cea78564ece2f21589869fe6482d0f4215726fc0c054323d63b6c7e92a6c6dae3d0bcfbde48f729dbe
|
7
|
+
data.tar.gz: 321fb5718b7365d9429d4a100397b8314503bd8ef43b3d1b666d1876f3ddc2e3471c75683080aad4c163932adf9777ed3652ca2cbe8c65b5484b6d4b25b5b75f
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [0.0.5] - 2020-02-06
|
10
|
+
Adding show endpoint to retrieve a single property
|
11
|
+
|
9
12
|
## [0.0.4] - 2019-10-17
|
10
13
|
Adding endpoint to update order of attachments for a specific property
|
11
14
|
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
immobilienscout (0.0.
|
4
|
+
immobilienscout (0.0.5)
|
5
5
|
activesupport
|
6
6
|
json
|
7
7
|
multipart-post
|
@@ -9,7 +9,7 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
activesupport (5.2.
|
12
|
+
activesupport (5.2.4.1)
|
13
13
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
14
14
|
i18n (>= 0.7, < 2)
|
15
15
|
minitest (~> 5.1)
|
@@ -22,10 +22,10 @@ GEM
|
|
22
22
|
safe_yaml (~> 1.0.0)
|
23
23
|
diff-lcs (1.3)
|
24
24
|
hashdiff (1.0.0)
|
25
|
-
i18n (1.
|
25
|
+
i18n (1.8.2)
|
26
26
|
concurrent-ruby (~> 1.0)
|
27
|
-
json (2.
|
28
|
-
minitest (5.
|
27
|
+
json (2.3.0)
|
28
|
+
minitest (5.14.0)
|
29
29
|
multipart-post (2.1.1)
|
30
30
|
public_suffix (3.1.1)
|
31
31
|
rake (12.3.3)
|
@@ -45,7 +45,7 @@ GEM
|
|
45
45
|
safe_yaml (1.0.5)
|
46
46
|
thread_safe (0.3.6)
|
47
47
|
timecop (0.8.1)
|
48
|
-
tzinfo (1.2.
|
48
|
+
tzinfo (1.2.6)
|
49
49
|
thread_safe (~> 0.1)
|
50
50
|
vcr (5.0.0)
|
51
51
|
webmock (3.6.2)
|
data/README.md
CHANGED
@@ -37,6 +37,11 @@ Immobilienscout::API::Property.publish({params})
|
|
37
37
|
Immobilienscout::API::Property.destroy(is24_id)
|
38
38
|
```
|
39
39
|
|
40
|
+
- Show property
|
41
|
+
```ruby
|
42
|
+
Immobilienscout::API::Property.show(is24_id)
|
43
|
+
```
|
44
|
+
|
40
45
|
#### Attachment
|
41
46
|
- Add attachments to property
|
42
47
|
```ruby
|
@@ -22,6 +22,14 @@ module Immobilienscout
|
|
22
22
|
execute_delete_request(destroy_url)
|
23
23
|
end
|
24
24
|
|
25
|
+
def show(is24_id)
|
26
|
+
raise ArgumentError unless is24_id.present?
|
27
|
+
|
28
|
+
show_url = show_url(is24_id)
|
29
|
+
|
30
|
+
execute_get_request(show_url)
|
31
|
+
end
|
32
|
+
|
25
33
|
private
|
26
34
|
|
27
35
|
def execute_post_request(url, params)
|
@@ -38,6 +46,13 @@ module Immobilienscout
|
|
38
46
|
parsed_response
|
39
47
|
end
|
40
48
|
|
49
|
+
def execute_get_request(url)
|
50
|
+
parsed_response = Immobilienscout::Request.new(url).get
|
51
|
+
raise Immobilienscout::Errors::InvalidRequest, parsed_response.messages.map(&:messages) unless parsed_response.success?
|
52
|
+
|
53
|
+
parsed_response
|
54
|
+
end
|
55
|
+
|
41
56
|
def create_url
|
42
57
|
"#{Immobilienscout::Client.api_url}/restapi/api/offer/v1.0/user/me/realestate"
|
43
58
|
end
|
@@ -49,6 +64,10 @@ module Immobilienscout
|
|
49
64
|
def destroy_url(is24_id)
|
50
65
|
"#{Immobilienscout::Client.api_url}/restapi/api/offer/v1.0/user/me/realestate/#{is24_id}"
|
51
66
|
end
|
67
|
+
|
68
|
+
def show_url(is24_id)
|
69
|
+
"#{Immobilienscout::Client.api_url}/restapi/api/offer/v1.0/user/me/realestate/#{is24_id}"
|
70
|
+
end
|
52
71
|
end
|
53
72
|
end
|
54
73
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: immobilienscout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Homeday GmbH
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|