gupshup_lib 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gupshup_lib.rb +10 -0
- data/lib/gupshup_lib/restclient.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae8f9d8786730fbe93af4c6ca0eb216685c04c4c2e221f59fd0a1fc173fe3c9a
|
4
|
+
data.tar.gz: 05e0eb3dcbdc36294b3d5b30fb3efd4b48e9ca5c2015fb1c780f16b2ec4e7dc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9389c31fbb3260f20d37af17a503a11605a54cc521cd5d516525ad77eb04da18f7bd63a666c7e6532a5f9c10374ec3b74e69b3e5230f2c7b7bc4bde791de0b8f
|
7
|
+
data.tar.gz: 6473d6cc9d7810c9046444b39c2b5f03ff8b3487fd6f0cea90677ec8e61da02e934883b31b754deb27f726155156a95ed9d62c7a54772057ab0344186e5e01ff
|
data/lib/gupshup_lib.rb
CHANGED
@@ -44,6 +44,16 @@ module GupshupLib
|
|
44
44
|
params[:filename]=filename if filename!=nil
|
45
45
|
return sendWhatsApp(from:from,to:to,body:params)
|
46
46
|
end
|
47
|
+
|
48
|
+
def sendWhatsAppFile(from:, to:, fileUrl:, caption: nil, filename: nil)
|
49
|
+
params={
|
50
|
+
"type": "file",
|
51
|
+
"url": fileUrl
|
52
|
+
}
|
53
|
+
params[:caption]=caption if caption!=nil
|
54
|
+
params[:filename]=filename if filename!=nil
|
55
|
+
return sendWhatsApp(from:from,to:to,body:params)
|
56
|
+
end
|
47
57
|
end
|
48
58
|
end
|
49
59
|
require 'gupshup_lib/whatsapp'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gupshup_lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ShoutOUT Labs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-07-
|
11
|
+
date: 2021-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Gupshup API integration
|
14
14
|
email: support@getshoutout.com
|