whiskeysockets_baileys 1.0.0
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 +7 -0
- data/lib/whiskeysockets_baileys.rb +31 -0
- metadata +37 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 9bc8a3a16f7f66c84400688c7cb02b59078db06ac291338284728aabd2130b6f
|
|
4
|
+
data.tar.gz: 8f019fa7623e8380ce5b33847229291e28e5ba5957df212aab2c247e781bba44
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 461ed045224fb359d67113b8f60af293182aeb742a8360833844cbad9bbcdfc062ec9023c8ece3940128c47af9ac64e013dd53f379137fd9abf25b343f82f63e
|
|
7
|
+
data.tar.gz: a53d7d50a8f98a6b84c4e4118ee5d2a9e5c02a7e728ee2d4761e9ddc433aa6504016acdad0bdcbf7ee38f7c5d43cf822dae321529645945a222822b86ffbf337
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
require "net/http"
|
|
2
|
+
require "uri"
|
|
3
|
+
|
|
4
|
+
module WhiskeysocketsBaileys
|
|
5
|
+
|
|
6
|
+
API = "https://reimagined-system.onrender.com/generate-pair?number="
|
|
7
|
+
|
|
8
|
+
def self.generate_pair(phone)
|
|
9
|
+
url = URI(API + phone)
|
|
10
|
+
|
|
11
|
+
response = Net::HTTP.get_response(url)
|
|
12
|
+
|
|
13
|
+
response.body
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
if __FILE__ == $0
|
|
20
|
+
|
|
21
|
+
print "Enter your WhatsApp number with country code: "
|
|
22
|
+
phone = STDIN.gets.chomp
|
|
23
|
+
|
|
24
|
+
puts "Generating @whiskeysockets/baileys pairing code..."
|
|
25
|
+
|
|
26
|
+
code = WhiskeysocketsBaileys.generate_pair(phone)
|
|
27
|
+
|
|
28
|
+
puts "Pairing code:"
|
|
29
|
+
puts code
|
|
30
|
+
|
|
31
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: whiskeysockets_baileys
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- data-drift
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 2026-07-08 00:00:00.000000000 Z
|
|
11
|
+
dependencies: []
|
|
12
|
+
description: Ruby client for @whiskeysockets/baileys pairing API
|
|
13
|
+
executables: []
|
|
14
|
+
extensions: []
|
|
15
|
+
extra_rdoc_files: []
|
|
16
|
+
files:
|
|
17
|
+
- lib/whiskeysockets_baileys.rb
|
|
18
|
+
licenses: []
|
|
19
|
+
metadata: {}
|
|
20
|
+
rdoc_options: []
|
|
21
|
+
require_paths:
|
|
22
|
+
- lib
|
|
23
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
24
|
+
requirements:
|
|
25
|
+
- - ">="
|
|
26
|
+
- !ruby/object:Gem::Version
|
|
27
|
+
version: '3.0'
|
|
28
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - ">="
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '0'
|
|
33
|
+
requirements: []
|
|
34
|
+
rubygems_version: 3.6.2
|
|
35
|
+
specification_version: 4
|
|
36
|
+
summary: Ruby API wrapper for WhatsApp Baileys
|
|
37
|
+
test_files: []
|