aircall 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/doc/contacts.md +18 -0
- data/doc/users.md +18 -0
- data/lib/aircall/contacts.rb +4 -0
- data/lib/aircall/users.rb +4 -0
- data/lib/aircall/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6c4652753f99fadd1bb8fb7bccb6fe709b409c2
|
4
|
+
data.tar.gz: c9204dd81aac5a2b8b412462827c7e8e741843ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62545e9f7ea1d609c422273622e82c5e45d583c3a77c05526e9532d9fd8a4aec9035f79ef9c9acb6184a61b94f3b24145250cca5c24857ecc88947382daf65b3
|
7
|
+
data.tar.gz: 07af5fc55991d56a3078f8962c2e79dba73e3e91825739d7522b96eb8f1220bed5fce282a8510de43d0044530f63fa1878103404956006269460432e84482e44
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/doc/contacts.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# Contacts
|
2
2
|
|
3
|
+
### All
|
4
|
+
|
5
|
+
##### Method
|
6
|
+
|
7
|
+
`contacts.get_all`
|
8
|
+
|
9
|
+
##### Parameters
|
10
|
+
|
11
|
+
| Name | Default value |
|
12
|
+
| ------------- |:-------------:|
|
13
|
+
| page | 1 |
|
14
|
+
| per_page | 5 |
|
15
|
+
| order | asc |
|
16
|
+
| order_by | created_at |
|
17
|
+
| from | |
|
18
|
+
| to | |
|
19
|
+
|
20
|
+
|
3
21
|
### By id
|
4
22
|
|
5
23
|
##### Method
|
data/doc/users.md
CHANGED
@@ -1,5 +1,23 @@
|
|
1
1
|
# Users
|
2
2
|
|
3
|
+
### All
|
4
|
+
|
5
|
+
##### Method
|
6
|
+
|
7
|
+
`users.get_all`
|
8
|
+
|
9
|
+
##### Parameters
|
10
|
+
|
11
|
+
| Name | Default value |
|
12
|
+
| ------------- |:-------------:|
|
13
|
+
| page | 1 |
|
14
|
+
| per_page | 5 |
|
15
|
+
| order | asc |
|
16
|
+
| order_by | created_at |
|
17
|
+
| from | |
|
18
|
+
| to | |
|
19
|
+
|
20
|
+
|
3
21
|
### By id
|
4
22
|
|
5
23
|
##### Method
|
data/lib/aircall/contacts.rb
CHANGED
@@ -2,6 +2,10 @@ module Aircall
|
|
2
2
|
class Contacts
|
3
3
|
include Connection
|
4
4
|
|
5
|
+
def get_all(page: 1, per_page: 5, order: "asc", order_by: "created_at", from: nil, to: nil)
|
6
|
+
get(construct_request_with_arguments("/contacts", binding))
|
7
|
+
end
|
8
|
+
|
5
9
|
def get_by_id(contact_id)
|
6
10
|
get("/contacts/#{contact_id}")
|
7
11
|
end
|
data/lib/aircall/users.rb
CHANGED
@@ -2,6 +2,10 @@ module Aircall
|
|
2
2
|
class Users
|
3
3
|
include Connection
|
4
4
|
|
5
|
+
def get_all(page: 1, per_page: 5, order: "asc", order_by: "created_at", from: nil, to: nil)
|
6
|
+
get(construct_request_with_arguments("/users", binding))
|
7
|
+
end
|
8
|
+
|
5
9
|
def get_by_id(user_id)
|
6
10
|
get("/users/#{user_id}")
|
7
11
|
end
|
data/lib/aircall/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aircall
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilek
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-07-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|