arbetsformedlingen 0.4.0 → 0.4.1
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.
- checksums.yaml +4 -4
- data/README.md +23 -5
- data/lib/arbetsformedlingen/api/client.rb +1 -1
- data/lib/arbetsformedlingen/version.rb +1 -1
- data/lib/arbetsformedlingen.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82e7c895eea69005d2e958c2f12571a6536b8a44896f6a421c2f45f309aea902
|
4
|
+
data.tar.gz: 7cc8792a58d149091cf8e2f5fd4481d09cbdda3f484120c7732d73a0e6f0adb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7489eed85970fab8eed820938db13d7c644e0f84be0149c8813490620a6a390eeea0a2169a54941f8c6a99d94b61589903fb99b31f1e879f02c1bd09dd12ed8
|
7
|
+
data.tar.gz: e2a52e929c49f20a380e033c7d4037f42a02f16f61327a8fb9b6f04c01546ed4292771f35dcd98de68d918f434e5404709411ef0202638632d094fcf940c5865
|
data/README.md
CHANGED
@@ -5,12 +5,15 @@ Arbetsförmedlingen API client (Swedish Public Employment Service).
|
|
5
5
|
__Features__
|
6
6
|
* Post job ad (a.k.a Direktöverförda annonser)
|
7
7
|
* Platsannons API Client
|
8
|
+
* WSOccupation SOAP API Client
|
8
9
|
|
9
10
|
|
10
11
|
__Index__
|
11
12
|
* [Installation](#installation)
|
12
|
-
* [API
|
13
|
-
* [Post ad
|
13
|
+
* [API Client](#api-client)
|
14
|
+
* [Post job ad](#post-ad)
|
15
|
+
* [WSOccupation Client API](#wsoccupation-client-api)
|
16
|
+
* [RDoc](http://www.rubydoc.info/gems/arbetsformedlingen/).
|
14
17
|
|
15
18
|
## Installation
|
16
19
|
|
@@ -28,7 +31,7 @@ Or install it yourself as:
|
|
28
31
|
|
29
32
|
$ gem install arbetsformedlingen
|
30
33
|
|
31
|
-
## API
|
34
|
+
## API Client
|
32
35
|
|
33
36
|
__Create a client:__
|
34
37
|
|
@@ -58,7 +61,7 @@ countries.map do |country|
|
|
58
61
|
end
|
59
62
|
```
|
60
63
|
|
61
|
-
## Post ad
|
64
|
+
## Post ad
|
62
65
|
|
63
66
|
__Complete example creating a packet__
|
64
67
|
|
@@ -171,7 +174,22 @@ client = API::Client.new(locale: 'sv')
|
|
171
174
|
client.create_ad(packet)
|
172
175
|
```
|
173
176
|
|
174
|
-
##
|
177
|
+
## WSOccupation API
|
178
|
+
|
179
|
+
There is some support for Arbetsförmedlingen's `WSOccupation` SOAP API. See [PR#3](https://github.com/buren/arbetsformedlingen/pull/3).
|
180
|
+
|
181
|
+
```ruby
|
182
|
+
client = Arbetsformedlingen::API::WSOccupationClient.new
|
183
|
+
response = client.occupations
|
184
|
+
response.xml.css('Name').first.text
|
185
|
+
# => "Landskapsarkitekter och landskapsingenjörer"
|
186
|
+
```
|
187
|
+
|
188
|
+
[WSOccupationClient documentation](http://www.rubydoc.info/gems/arbetsformedlingen/Arbetsformedlingen/API/WSOccupationClient).
|
189
|
+
|
190
|
+
## Notes
|
191
|
+
|
192
|
+
__Arbetsförmedlingen TaxonomyService__
|
175
193
|
|
176
194
|
Some requests had to be made to Arbetsförmedlingens TaxonomyService in order to fetch the data for the occupation codes. You can find that (plus some more) here :point_down: Postman.
|
177
195
|
|
@@ -53,7 +53,7 @@ module Arbetsformedlingen
|
|
53
53
|
AdResult.build(response.json)
|
54
54
|
end
|
55
55
|
|
56
|
-
# Fetch
|
56
|
+
# Fetch ads from API (areas => landområde/värdsdel)
|
57
57
|
# @return [MatchningResult] the result.
|
58
58
|
# @see MatchningClient#ads
|
59
59
|
# @see MatchningResult#build
|
data/lib/arbetsformedlingen.rb
CHANGED