upwork-api 1.3.3 → 1.3.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ad6d46e6b58de2cb404556eeb65e51ae40992a61e8945b99c3083fa3e7b1daf
4
- data.tar.gz: d72b45c61d06a47a233221d04245672a3a5044fe47e43aa699498086b5c36e6f
3
+ metadata.gz: 43c3070a0cf1763031974d2f249358e0d425394a353af289a3102c6defc117cb
4
+ data.tar.gz: 0c69071438f4981a591132f824578d5c394823dffb10034cb4def8bc2103862c
5
5
  SHA512:
6
- metadata.gz: f36ea0309f07ee6ebe79c2eaf82daea74d256f6e8a7d3a49bba05d74729bc15dc5fab750d80efa5eac87d34c0f3f52a46215da19bd6276349080db98bd01eb71
7
- data.tar.gz: 0db58eeab65b043f4457a2a3d7a14e3e11f82b83e28173bdb1e25a14218e6e9cca9e7232e99f483eb547668e3f19ec6472f537235d2446b606725cee94daa817
6
+ metadata.gz: 76d52d40c47f08d9d61fd22ec829ad3af49a817d8d98a555681e02677c8301479bfdc17eaced488f083fe68827b3223aa1532c4f45f4c511ce1cc079e9d4daa1
7
+ data.tar.gz: f3cea20ef437ae2911954c8519f82ba4e01d5bfa34c65a8251df9a7455d230e9dec7027e69b0241edc10523cea1cbcba225a777298337b0aec61ead68d1bd3c6
data/CHANGES.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Release History
2
2
 
3
+ ## 1.3.4
4
+ * Add Room Messages API
5
+
3
6
  ## 1.3.3
4
7
  * Add Specialties API
5
8
  * Add Skills V2 API
data/lib/upwork/api.rb CHANGED
@@ -26,4 +26,4 @@ module Upwork # :nodoc:
26
26
 
27
27
  $LOG = Logger.new
28
28
  end
29
- end
29
+ end
@@ -47,6 +47,17 @@ module Upwork
47
47
  @client.get '/messages/v3/' + company + '/rooms/' + room_id, params
48
48
  end
49
49
 
50
+ # Get messages from a specific room
51
+ #
52
+ # Arguments:
53
+ # company: (String)
54
+ # room_id: (String)
55
+ # params: (Hash)
56
+ def get_room_messages(company, room_id, params = {})
57
+ $LOG.i "running " + __method__.to_s
58
+ @client.get '/messages/v3/' + company + '/rooms/' + room_id + '/stories', params
59
+ end
60
+
50
61
  # Get a specific room by offer ID
51
62
  #
52
63
  # Arguments:
@@ -89,7 +100,7 @@ module Upwork
89
100
  $LOG.i "running " + __method__.to_s
90
101
  @client.post '/messages/v3/' + company + '/rooms', params
91
102
  end
92
-
103
+
93
104
  # Send a message to a room
94
105
  #
95
106
  # Arguments:
@@ -100,7 +111,7 @@ module Upwork
100
111
  $LOG.i "running " + __method__.to_s
101
112
  @client.post '/messages/v3/' + company + '/rooms/' + room_id + '/stories', params
102
113
  end
103
-
114
+
104
115
  # Update a room settings
105
116
  #
106
117
  # Arguments:
@@ -13,6 +13,6 @@
13
13
 
14
14
  module Upwork # :nodoc:
15
15
  module Api
16
- VERSION = "1.3.3"
16
+ VERSION = "1.3.4"
17
17
  end
18
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: upwork-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maksym Novozhylov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-21 00:00:00.000000000 Z
11
+ date: 2020-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth
@@ -189,8 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  - !ruby/object:Gem::Version
190
190
  version: '0'
191
191
  requirements: []
192
- rubyforge_project:
193
- rubygems_version: 2.7.6.2
192
+ rubygems_version: 3.1.2
194
193
  signing_key:
195
194
  specification_version: 4
196
195
  summary: Ruby bindings for Upwork API.