athena_health 1.0.10 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/athena_health/client.rb +7 -2
- data/lib/athena_health/connection.rb +2 -1
- data/lib/athena_health/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: 12ad7bbe1c13fdf8dc0231f9e9f916991a652f05
|
4
|
+
data.tar.gz: 7ce7fd1a22ecbcc5559ea4d83c00273068baa4e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de16d4331ed9091b0cf1df92fb35517b23db057ae8972d7f8bcd940c135d5f6b9d7ef45676b6369f8e15c00adb4a009ce0f5f354904a124e3f0a3b374a848e50
|
7
|
+
data.tar.gz: f3dcf4364c8127766efedf20c693434583e4b9ffc94acccc4d10541c7a60eb6256cafed4d2c151c883806a43b5171bc878c2d17ef4e9229e97068f180c9f2d49
|
data/lib/athena_health/client.rb
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
module AthenaHealth
|
2
2
|
class Client
|
3
|
-
def initialize(version:, key:, secret:)
|
4
|
-
@api = AthenaHealth::Connection.new(
|
3
|
+
def initialize(version:, key:, secret:, token: nil)
|
4
|
+
@api = AthenaHealth::Connection.new(
|
5
|
+
version: version,
|
6
|
+
key: key,
|
7
|
+
secret: secret,
|
8
|
+
token: token,
|
9
|
+
)
|
5
10
|
end
|
6
11
|
|
7
12
|
include Endpoints::Practices
|
@@ -5,10 +5,11 @@ module AthenaHealth
|
|
5
5
|
BASE_URL = 'https://api.athenahealth.com'.freeze
|
6
6
|
AUTH_PATH = { 'v1' => 'oauth', 'preview1' => 'oauthpreview', 'openpreview1' => 'oauthopenpreview' }
|
7
7
|
|
8
|
-
def initialize(version:, key:, secret:)
|
8
|
+
def initialize(version:, key:, secret:, token: nil)
|
9
9
|
@version = version
|
10
10
|
@key = key
|
11
11
|
@secret = secret
|
12
|
+
@token = token
|
12
13
|
end
|
13
14
|
|
14
15
|
def authenticate
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: athena_health
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mateusz Urbański
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|