bzapper 0.13.0 → 0.14.1
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 +4 -4
- data/README.md +2 -2
- data/lib/bzapper/resources/official.rb +15 -0
- data/lib/bzapper/resources/templates.rb +3 -3
- data/lib/bzapper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: acbc008bcbe9d64fbfc677ce7c4bb983e9992dce7e5f740820ac46b99038afc4
|
|
4
|
+
data.tar.gz: 6ef2f940824d4dbf77c4208708e9edad6d9d588ebc5cbe705f41ed32de9ca3c4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dcc54fe61cd1ad90d748d8855821a5bf50e743fee2993e9f8aec7b8a58fc5274d6ea1d03fd5e28b04737171bb67db268eb6d981faffd2a850a54e6d172c8df97
|
|
7
|
+
data.tar.gz: 3756d3975a329735a51b581fca8e996df6349ec30eeccf88e31facb86e1bcf81ca578f88bc59d4534252aa82326435fc82aa238771d8492b66b847a329275a48
|
data/README.md
CHANGED
|
@@ -10,13 +10,13 @@ Zero dependências de runtime (só biblioteca padrão: `net/http`, `json`, `open
|
|
|
10
10
|
## Instalação
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
gem install bzapper -v 0.
|
|
13
|
+
gem install bzapper -v 0.14.1
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
Ou no `Gemfile` — **fixe a versão exata** (cada release declara se muda a superfície pública):
|
|
17
17
|
|
|
18
18
|
```ruby
|
|
19
|
-
gem "bzapper", "0.
|
|
19
|
+
gem "bzapper", "0.14.1"
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
## Hello world
|
|
@@ -314,6 +314,21 @@ module Bzapper
|
|
|
314
314
|
timeout: timeout)
|
|
315
315
|
end
|
|
316
316
|
|
|
317
|
+
# Quality and messaging-limit history of one number. `GET /official/numbers/{id}/health`
|
|
318
|
+
#
|
|
319
|
+
# Every change of quality rating and messaging limit (from Meta's webhook or a live check),
|
|
320
|
+
# newest first — what explains why the limit dropped or when quality worsened. Repeated states
|
|
321
|
+
# are not history and are not recorded.
|
|
322
|
+
#
|
|
323
|
+
# @param id [String] parâmetro de caminho
|
|
324
|
+
# @param timeout [Numeric, nil] segundos por tentativa (padrão: o do cliente).
|
|
325
|
+
# @return [Hash, Array, nil] o JSON da resposta, inteiro (nil em 204).
|
|
326
|
+
# @raise [Bzapper::Error] resposta fora de 2xx ou falha de rede.
|
|
327
|
+
# @raise [ArgumentError] parâmetro de caminho vazio, "." ou "..".
|
|
328
|
+
def get_official_number_health(id, timeout: nil)
|
|
329
|
+
request("GET", "/official/numbers/#{segment(id, "id")}/health", timeout: timeout)
|
|
330
|
+
end
|
|
331
|
+
|
|
317
332
|
# Disconnect one number. `DELETE /official/numbers/{id}`
|
|
318
333
|
#
|
|
319
334
|
# The conversation history stays: the mirror instance is archived, not deleted. Removing the
|
|
@@ -306,9 +306,9 @@ module Bzapper
|
|
|
306
306
|
#
|
|
307
307
|
# Must be an APPROVED template of the Authentication category or — until Meta releases that
|
|
308
308
|
# category for the account (business verification + 2,000 daily limit) — a provisional Utility
|
|
309
|
-
# template with
|
|
310
|
-
#
|
|
311
|
-
# template is used again).
|
|
309
|
+
# template with exactly one body variable, which receives the code (Meta does not accept the
|
|
310
|
+
# copy-code button in Utility). An empty `template_id` clears the choice (the first approved
|
|
311
|
+
# Authentication template is used again).
|
|
312
312
|
#
|
|
313
313
|
# @param template_id [String, nil] (corpo) Empty clears the choice.
|
|
314
314
|
# @param idempotency_key [String, nil] chave de idempotência (senão a SDK gera uma).
|
data/lib/bzapper/version.rb
CHANGED