aircall 0.1.5 → 0.1.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e4a17bdee214787d7f2186d2a09c809208e2cada
4
- data.tar.gz: 59c0a6fa96547a35958f3a1997630ac3fec9a7fb
3
+ metadata.gz: c6c4652753f99fadd1bb8fb7bccb6fe709b409c2
4
+ data.tar.gz: c9204dd81aac5a2b8b412462827c7e8e741843ed
5
5
  SHA512:
6
- metadata.gz: 677005bb8fc19899cf9b956a6b79b771ab516300bc5962c4fa808fe8e9cb18722daa3d81db46a884eb5b122d0a9c5c2249c101bc997b5db88d23aff467e31668
7
- data.tar.gz: e735367307b0d6b5a62e821180ce7e9c1d73ccab3a3701c95aa129452ea594473011c7af0e078dea45e6fed5374caa459075eb1df0e2bac55a273ae6f428cbdf
6
+ metadata.gz: 62545e9f7ea1d609c422273622e82c5e45d583c3a77c05526e9532d9fd8a4aec9035f79ef9c9acb6184a61b94f3b24145250cca5c24857ecc88947382daf65b3
7
+ data.tar.gz: 07af5fc55991d56a3078f8962c2e79dba73e3e91825739d7522b96eb8f1220bed5fce282a8510de43d0044530f63fa1878103404956006269460432e84482e44
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aircall (0.1.5)
4
+ aircall (0.1.6)
5
5
  httparty (~> 0.16.2)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -63,7 +63,7 @@ Or like this:
63
63
  `gem build aircall.gemspec`
64
64
 
65
65
  ### Local installation
66
- `gem install ./aircall[version].gem`
66
+ `gem install ./aircall-[version].gem`
67
67
 
68
68
 
69
69
  ### Tests
@@ -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
@@ -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
@@ -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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Aircall
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
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.5
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-05-23 00:00:00.000000000 Z
12
+ date: 2018-07-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty