check_appointments 0.0.2 → 0.0.3

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: fc7faadf375eb09098be4c19caaec7030224d0b6
4
- data.tar.gz: 1a37ee4e6057ce6f98f12868babffb7cac5f52bf
3
+ metadata.gz: 097568d17cbba1d894ad9d7f153f94c698068624
4
+ data.tar.gz: c16e38045d1d22f27ecac2875bbe58c165261af5
5
5
  SHA512:
6
- metadata.gz: 8705555532fcf964966b5c8283c1e6a6f13a5535818b6b02142da864b9d077054ff81dbdf935b3ca6da45107c80775c342e92a905fd5981f2c8a2a981228aa0a
7
- data.tar.gz: 49efaf3d9c55a27044b68fa4adc708bf9c7365fcd8fb3f45eca8344f12928b2ec61b7d67f80850852fbd5f33b7ea4a2d7eccd4bd7c02aff8e6adcc2483a1cc85
6
+ metadata.gz: c121e52ad532aa8a608a8afbfd5a0fbc579eef9816e5417bbb9b3f02aafaf7ffe9bc5ae7c0465fb7946a8fe3d23ca82d962e06ef0b7ace7563fa3f0f57ce5fbc
7
+ data.tar.gz: d7a3ef427e6f0860cb6adab16cbf2e24e2ef9db27fe89a45cb621f6212ef45241119f2b10170a1119d1542c8621caf882203cbd697f554b8da120b07790124bf
@@ -17,9 +17,9 @@ module CheckAppointments
17
17
  api_url = "/rest/appointments/#{CheckAppointments.api_key}/all/all"
18
18
  time_stamp = Time.now.utc.to_i
19
19
  sig = create_signature( CheckAppointments.api_key + CheckAppointments.private_key + time_stamp.to_s + api_url )
20
- # response = RestClient.get CheckAppointments.base_url + api_url ,
21
- # {:params => {:apiKey => CheckAppointments.api_key, :timestamp => time_stamp, :signature => sig }}
22
- response = RestClient::Request.execute :method => :get, :url => CheckAppointments.base_url + api_url, :payload => {:apiKey => CheckAppointments.api_key, :timestamp => time_stamp, :signature => sig}, :ssl_version => 'TLSv1'
20
+ response = RestClient.get CheckAppointments.base_url + api_url ,
21
+ {:params => {:apiKey => CheckAppointments.api_key, :timestamp => time_stamp, :signature => sig }}
22
+ # response = RestClient::Request.execute :method => :get, :url => CheckAppointments.base_url + api_url, :payload => {:apiKey => CheckAppointments.api_key, :timestamp => time_stamp, :signature => sig}, :ssl_version => 'TLSv1'
23
23
 
24
24
  appointments = JSON.parse(response)
25
25
  response = []
@@ -9,9 +9,9 @@ module CheckAppointments
9
9
  api_url = '/rest/clients'
10
10
  time_stamp = Time.now.utc.to_i
11
11
  sig = create_signature( CheckAppointments.api_key + CheckAppointments.private_key + time_stamp.to_s + api_url )
12
- # response = RestClient.get CheckAppointments.base_url + api_url,
13
- # {:params => {:apiKey => CheckAppointments.api_key, :timestamp => time_stamp, :signature => sig }}
14
- response = RestClient::Request.execute :method => :get, :url => CheckAppointments.base_url + api_url, :payload => {:apiKey => CheckAppointments.api_key, :timestamp => time_stamp, :signature => sig}, :ssl_version => 'TLSv1'
12
+ response = RestClient.get CheckAppointments.base_url + api_url,
13
+ {:params => {:apiKey => CheckAppointments.api_key, :timestamp => time_stamp, :signature => sig }}
14
+ # response = RestClient::Request.execute :method => :get, :url => CheckAppointments.base_url + api_url, :payload => {:apiKey => CheckAppointments.api_key, :timestamp => time_stamp, :signature => sig}, :ssl_version => 'TLSv1'
15
15
  response
16
16
  end
17
17
 
@@ -21,9 +21,9 @@ module CheckAppointments
21
21
  api_url = "/rest/clients/createdOn/#{date}"
22
22
  time_stamp = Time.now.utc.to_i
23
23
  sig = create_signature( CheckAppointments.api_key + CheckAppointments.private_key + time_stamp.to_s + api_url )
24
- # response = RestClient.get CheckAppointments.base_url + api_url,
25
- # {:params => {:apiKey => CheckAppointments.api_key, :timestamp => time_stamp, :signature => sig }}
26
- response = RestClient::Request.execute :method => :get, :url => CheckAppointments.base_url + api_url, :payload => {:apiKey => CheckAppointments.api_key, :timestamp => time_stamp, :signature => sig}, :ssl_version => 'TLSv1'
24
+ response = RestClient.get CheckAppointments.base_url + api_url,
25
+ {:params => {:apiKey => CheckAppointments.api_key, :timestamp => time_stamp, :signature => sig }}
26
+ # response = RestClient::Request.execute :method => :get, :url => CheckAppointments.base_url + api_url, :payload => {:apiKey => CheckAppointments.api_key, :timestamp => time_stamp, :signature => sig}, :ssl_version => 'TLSv1'
27
27
  response
28
28
  end
29
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: check_appointments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Sperry