callrail 0.2.7 → 0.2.8
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 +5 -5
- data/README.md +2 -0
- data/lib/callrail.rb +2 -1
- data/lib/callrail/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 8e0a09dc76b176377e1a2ae64535bbe281b4fe9e2b98297377704ab17adfc1eb
|
|
4
|
+
data.tar.gz: 61a1f12390cf6e1abf990e83bb69ce3a47b153f69de110e8760bcd42fcf1036e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
data/lib/callrail.rb
CHANGED
|
@@ -10,7 +10,8 @@ module Callrail
|
|
|
10
10
|
MAX_PAGE_SIZE = '250'
|
|
11
11
|
|
|
12
12
|
def initialize(opts = {})
|
|
13
|
-
@
|
|
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
|
data/lib/callrail/version.rb
CHANGED
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.
|
|
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:
|
|
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.
|
|
124
|
+
rubygems_version: 2.7.7
|
|
125
125
|
signing_key:
|
|
126
126
|
specification_version: 4
|
|
127
127
|
summary: Used to access the CallRail api
|