callrail 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 711be4fe1640adfe3c857a8b4014467fa17d1200
4
- data.tar.gz: 0acb033d592e81ce66985dd42476d066822d92c2
2
+ SHA256:
3
+ metadata.gz: 8e0a09dc76b176377e1a2ae64535bbe281b4fe9e2b98297377704ab17adfc1eb
4
+ data.tar.gz: 61a1f12390cf6e1abf990e83bb69ce3a47b153f69de110e8760bcd42fcf1036e
5
5
  SHA512:
6
- metadata.gz: 1d59d1537dbfe8d723c09a69fccf7fa081749a023b3afe10162b54db789d0c122d4da07778d2c9df1e4e5eeb82ffc2b6e1753a379e0666802e7b4ddd71337f59
7
- data.tar.gz: 727f635520ccb319e942ecabff2eb9208d2a29bb84bbc1644f01a1f3e5dc2b040543597a4755d324187c1573181d4a3fcc5a8653422c4d6833ff7385a1729db4
6
+ metadata.gz: 9abd3084f7cacba2fd403ba7cf7e23e27a60915970a7827f4dbbf99c9a1a05dbe127d9c568b5d0fe3fa0d57dcc9bf4e0681d62e5c6504a2da10d809a801b6b5b
7
+ data.tar.gz: 52f0ddc5d4b94d4b6f0b941a79025877ee29bf23c66babf5e8af052c0bedc2735c9c20a8fb51b26992386ae3c3d5ec17ce0219e1657577052ad8259084c877bc
data/README.md CHANGED
@@ -34,8 +34,10 @@ opts[:end_date] - ex: “2015-10-05” for all calls before and including Octobe
34
34
  opts = {}
35
35
  opts[:key] = "<Your Callrail API Key>"
36
36
  opts[:account_id] = <your_account_id>
37
+ opts[:api_version] = "v2"
37
38
  ```
38
39
  * * Account ID is optional for the initial connection. You can set the account id later if you need to retrieve it first.
40
+ * * API version is optional. v2 will be used by default. v3 is untested, use at your own risk! Callrail IDs are different in v3, keep in mind if changing versions.
39
41
 
40
42
  ``` testcon = Callrail::Api.new(:key => opts[:key]) ```
41
43
 
@@ -10,7 +10,8 @@ module Callrail
10
10
  MAX_PAGE_SIZE = '250'
11
11
 
12
12
  def initialize(opts = {})
13
- @url = 'https://api.callrail.com/v2/a'
13
+ @api_version = opts[:api_version] || "v2"
14
+ @url = "https://api.callrail.com/#{@api_version}/a"
14
15
  @auth = "Token token=" + opts[:key]
15
16
  @account_id = opts[:account_id].to_s if opts[:account_id]
16
17
  end
@@ -1,3 +1,3 @@
1
1
  module Callrail
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: callrail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hoskison
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-15 00:00:00.000000000 Z
11
+ date: 2019-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  requirements: []
123
123
  rubyforge_project:
124
- rubygems_version: 2.6.8
124
+ rubygems_version: 2.7.7
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: Used to access the CallRail api