proz 2.1.0 → 2.1.1
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_wiwo_entry.rb +17 -0
- data/lib/proz/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: acbf04247cfcfd4bec2cac1dcff24be1b5680ed3
|
4
|
+
data.tar.gz: 6636a2aa6cda2551e729297e2035ae08b193fd42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a034fef5f6aced9945152c179ab0f9cc7ee5a099ed61ad45d58c173d7fda8a8dd4b7ef52f9fcc8058e5166ea56b7c0fab5d8698ee718ebae5e12b3768e686b27
|
7
|
+
data.tar.gz: 568cb68005c5872e25b45e8fa32b524a843b3270ffc78f193259563d2a16bc6d9e3e79fec67ea19a1d27199c8e3d603a97903161f546d6520141af72f7eb717a
|
data/README.md
CHANGED
@@ -100,6 +100,15 @@ Proz::GetWiwoEntry.new(
|
|
100
100
|
|
101
101
|
```
|
102
102
|
|
103
|
+
GET Single WIWO (OAuth2)
|
104
|
+
|
105
|
+
```ruby
|
106
|
+
Proz::GetSingleWiwoEntry.new(
|
107
|
+
token: 'access_token',
|
108
|
+
wiwo_id: 'wiwo_id',
|
109
|
+
).get
|
110
|
+
```
|
111
|
+
|
103
112
|
POST WIWO
|
104
113
|
|
105
114
|
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 GetSingleWiwoEntry
|
5
|
+
include HTTParty
|
6
|
+
base_uri "https://api.proz.com/v2"
|
7
|
+
attr_reader :token, :wiwo_id
|
8
|
+
def initialize(token:, wiwo_id:)
|
9
|
+
@token = token
|
10
|
+
@wiwo_id = wiwo_id
|
11
|
+
end
|
12
|
+
|
13
|
+
def get
|
14
|
+
self.class.get("/wiwo/#{wiwo_id}", headers: { 'Authorization' => "Bearer #{token}" } )
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
data/lib/proz/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin S. Dias
|
@@ -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_wiwo_entry.rb
|
145
146
|
- lib/proz/get_wiwo_entry.rb
|
146
147
|
- lib/proz/oauth.rb
|
147
148
|
- lib/proz/patch_wiwo_entry.rb
|