proz 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/lib/proz.rb +2 -1
- data/lib/proz/get_single_public_wiwo_entry.rb +17 -0
- data/lib/proz/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dfdcb398c2117e3f6d4eb2dc1e51995786d5b04
|
4
|
+
data.tar.gz: e5967ef23c75c7aef5cfccdcd39da55210c2f18f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a59e4348ea0b9f4c41b619b973a572171fe51872d1b55a10d51a366ece3716732cb4b88a6a8d3b7871ba26c3b9560c968045ee346cf6849a3d4bd02ae749db0e
|
7
|
+
data.tar.gz: b9496756ff7876acaec8a97a9f62943821623ad542f9bc2ed3dbd6df93bd03e3bbb51c8ef67fcc575b3a5bb0c758275ccaf0bfa55d657b5cef4390e0c00438f4
|
data/README.md
CHANGED
@@ -109,6 +109,15 @@ Proz::GetSingleWiwoEntry.new(
|
|
109
109
|
).get
|
110
110
|
```
|
111
111
|
|
112
|
+
GET Single Public WIWO (API Key)
|
113
|
+
|
114
|
+
```ruby
|
115
|
+
Proz::GetSinglePublicWiwoEntry.new(
|
116
|
+
key: 'key',
|
117
|
+
wiwo_id: 'wiwo_id',
|
118
|
+
).get
|
119
|
+
```
|
120
|
+
|
112
121
|
POST WIWO
|
113
122
|
|
114
123
|
Uses OAuth2 with the `wiwo` default scope. Use the [omniauth-proz](https://github.com/diasks2/omniauth-proz) gem to easily authenticate.
|
data/lib/proz.rb
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'httparty'
|
2
|
+
|
3
|
+
module Proz
|
4
|
+
class GetSinglePublicWiwoEntry
|
5
|
+
include HTTParty
|
6
|
+
base_uri "https://api.proz.com/v2"
|
7
|
+
attr_reader :key, :wiwo_id
|
8
|
+
def initialize(key:, wiwo_id:)
|
9
|
+
@key = key
|
10
|
+
@wiwo_id = wiwo_id
|
11
|
+
end
|
12
|
+
|
13
|
+
def get
|
14
|
+
self.class.get("/wiwo/#{wiwo_id}", headers: { 'X-Proz-API-Key' => "#{key}" } )
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/proz/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: proz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin S. Dias
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -142,6 +142,7 @@ files:
|
|
142
142
|
- lib/proz/delete_wiwo_reply.rb
|
143
143
|
- lib/proz/freelancer.rb
|
144
144
|
- lib/proz/freelancer_matches.rb
|
145
|
+
- lib/proz/get_single_public_wiwo_entry.rb
|
145
146
|
- lib/proz/get_single_wiwo_entry.rb
|
146
147
|
- lib/proz/get_wiwo_entry.rb
|
147
148
|
- lib/proz/oauth.rb
|