direct7 0.0.16 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 423361ec4f8a5b9b72ac7f154785511dbf4b040fb5135762d36569e0167372b8
4
- data.tar.gz: f9148154385db307b499e9547fa1944d5290b83070913648b16ed3352ce142d6
3
+ metadata.gz: 8a131a32b8167c20aec24fbcefc54fbfa580bbc41624c2a8484d0eb8e76e37f2
4
+ data.tar.gz: 7604364d79cde836c8cb4adcda12bc9643436dc6bb659a0e079d6b7b1582ea8f
5
5
  SHA512:
6
- metadata.gz: 18c3822051045542dc5ec210170e09d508ba530a6778d06127e1333400af77822c9df93e7d4937147ae4b23544a4baf5a21d3542896d829d4908b8372f95e198
7
- data.tar.gz: cb4635ee81cd9ed9238932e72c70d109c02bf0d396ae0f79c6a7678e0c7e78902126f9e4f57c193c2a5250bc4d45deab15aca6cce596a08d52c7152d7963a954
6
+ metadata.gz: 6b451dc3c76a0939d77d56c1c9427c61ff0aa91f40287a54812762ca56acd1dad55e27949c3bf0a5d27b846c084b80b030f8eae3ee23a7b81cf508263f74a46b
7
+ data.tar.gz: f899549dc50d8f9a1f81155dd42c226f6d69fd60f5596b5267f4225c5d6808385a496e817addc4097b052f59ce25c0157f2cb88b372c664ace79cd42e87aaa32
data/README.md CHANGED
@@ -8,7 +8,7 @@ The SDK is available on RubyGems and can be installed using two methods:
8
8
  Add this line to your application's Gemfile:
9
9
 
10
10
  ```bash
11
- gem 'direct7', '~> 0.0.16'
11
+ gem 'direct7', '~> 0.0.17'
12
12
  ```
13
13
 
14
14
  And then execute:
@@ -236,6 +236,17 @@ client = Direct7::Client.new('Your API token')
236
236
  client.whatsapp.get_status(request_id="0012c7f5-2ba5-49db-8901-4ee9be6dc8d1")
237
237
  ```
238
238
 
239
+ ### Read Receipt
240
+
241
+ ```ruby
242
+ require 'direct7'
243
+
244
+ client = Direct7::Client.new('Your API token')
245
+
246
+ # message_id is the id shown in the api reports
247
+ client.whatsapp.read_receipt(message_id="9612c7f5-2ba5-49db-8901-4ee9be6dc8d1")
248
+ ```
249
+
239
250
  ## FAQ
240
251
 
241
252
  ### How do I get my API token?
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.16
1
+ 0.0.17
data/direct7.gemspec CHANGED
@@ -4,7 +4,7 @@ require "direct7/version"
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "direct7"
7
- spec.version = "0.0.16"
7
+ spec.version = "0.0.17"
8
8
  spec.authors = ["Direct7 Networks"]
9
9
  spec.email = ["support@d7networks.com"]
10
10
  spec.summary = "Ruby SDK for Direct7 Platform REST API"
@@ -239,5 +239,14 @@ module Direct7
239
239
  @log.info('Message status retrieved successfully.')
240
240
  response
241
241
  end
242
+
243
+ def read_receipt(message_id)
244
+ response = @client.get(
245
+ @client.host,
246
+ "/whatsapp/v2/read-receipt/#{message_id}"
247
+ )
248
+ @log.info('Message marked as read successfully.')
249
+ response
250
+ end
242
251
  end
243
252
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: direct7
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Direct7 Networks
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-29 00:00:00.000000000 Z
11
+ date: 2024-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json