bitrix_webhook 0.1.3 → 0.1.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 +4 -4
- data/README.md +24 -1
- data/lib/bitrix_webhook/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f49437555ecbd171fab893d939fc63da46dffb4
|
4
|
+
data.tar.gz: 64cb34b6baf79f0fb69c1acea64edac7fbce408d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efbc9470c4feb45f3a7ec5384eff0e83d2f14ea4ebf66743968a2776c13ff90a8de33896e70458ca183d55a17fa4422a5fa41cae8b0fd877c50fe9dbb4373a66
|
7
|
+
data.tar.gz: 41331dcb6e2379ed8894857c376adffc9a01ab41065b2387d94f14cfcce28e2bf022caa61498f7ba60c60f1639b878e4662d930530323d532627bc43ceb8a423
|
data/README.md
CHANGED
@@ -19,10 +19,33 @@ And then execute:
|
|
19
19
|
Or install it yourself as:
|
20
20
|
|
21
21
|
$ gem install bitrix_webhook
|
22
|
+
|
23
|
+
Then run:
|
24
|
+
|
25
|
+
$ rails g bitrix_webhook:config
|
26
|
+
|
27
|
+
which will generate default settings files:
|
28
|
+
|
29
|
+
config/initializers/bitrix_webhook.rb
|
30
|
+
|
31
|
+
Then configurate bitrix_webhook.rb file:
|
32
|
+
|
33
|
+
```ruby
|
34
|
+
BitrixWebhook.configuration do |config|
|
35
|
+
config.bitrix24_url = 'URL' # Like this b21-6l64i7.bitrix24.ru
|
36
|
+
config.hook = 'Hook' # Like this ak75dm93k5eq8215
|
37
|
+
end
|
38
|
+
```
|
22
39
|
|
23
40
|
## Usage
|
24
41
|
|
25
|
-
|
42
|
+
Now available only **crm.lead.add**
|
43
|
+
|
44
|
+
*I'm sorry i didn't have time to write all methods.*
|
45
|
+
|
46
|
+
```ruby
|
47
|
+
BitrixWebhook::CRM::LEAD.add(fname:'Serhii',lname:'Danovskyi',phone:'+380675807873',email:'serhii.danovskyi@gamil.com')
|
48
|
+
```
|
26
49
|
|
27
50
|
## Development
|
28
51
|
|