supersaas-api-client 1.1.0 → 1.1.1
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 +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +6 -6
- data/README.md +2 -5
- data/lib/supersaas-api-client/client.rb +5 -1
- data/lib/supersaas-api-client/version.rb +1 -1
- data/supersaas-api-client.gemspec +3 -3
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43c876c27f4bc637ce610661c4db2a17d759f5c5d9edc1fc8b0c5fa44618563c
|
4
|
+
data.tar.gz: d51433a0686154e7b829626deb77f376a7aa9b3e2f6711c045973192c9484dad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0964ed2b094ee239eefaa06605110181d4c5294d56c4f1b8967c7036474932c12cd330179021335fc33312b280e1d923eafd4c4c2a8c44c4532222c480786198'
|
7
|
+
data.tar.gz: 535e50d5495659bd3db3b547f010c24e39c9834ffc9c7368d9b0040a93789ca5061dc7804f7bebc7045a5a81ab0217818bd1c7785fc3d83afb02d718382b30af
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
supersaas-api-client (1.1.
|
4
|
+
supersaas-api-client (1.1.1)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
minitest (5.
|
10
|
-
rake (
|
9
|
+
minitest (5.14.0)
|
10
|
+
rake (13.0.1)
|
11
11
|
|
12
12
|
PLATFORMS
|
13
13
|
ruby
|
14
14
|
|
15
15
|
DEPENDENCIES
|
16
|
-
bundler
|
17
|
-
minitest
|
18
|
-
rake
|
16
|
+
bundler
|
17
|
+
minitest
|
18
|
+
rake
|
19
19
|
supersaas-api-client!
|
20
20
|
|
21
21
|
BUNDLED WITH
|
data/README.md
CHANGED
@@ -85,7 +85,7 @@ _Note: does not work for capacity type schedules._
|
|
85
85
|
|
86
86
|
Create a user with user attributes params:
|
87
87
|
|
88
|
-
Supersaas::Client.instance.users.create({full_name: 'Example Name', email: 'example@example.com'}) #=>
|
88
|
+
Supersaas::Client.instance.users.create({name: 'name@name.com', full_name: 'Example Name', email: 'example@example.com'}) #=> http://www.supersaas.com/api/users/12345.json
|
89
89
|
|
90
90
|
#### Update User
|
91
91
|
|
@@ -115,7 +115,7 @@ Get all users with optional `form` and `limit`/`offset` pagination params:
|
|
115
115
|
|
116
116
|
Create an appointment by `schedule_id` and `user_id` with appointment attributes and `form` and `webhook` params:
|
117
117
|
|
118
|
-
Supersaas::Client.instance.appointments.create(12345, 67890, {full_name: 'Example Name', email: 'example@example.com', slot_id: 12345}, true, true) #=>
|
118
|
+
Supersaas::Client.instance.appointments.create(12345, 67890, {full_name: 'Example Name', email: 'example@example.com', slot_id: 12345}, true, true) #=> http://www.supersaas.com/api/bookings/12345.json
|
119
119
|
|
120
120
|
#### Update Appointment/Booking
|
121
121
|
|
@@ -239,9 +239,6 @@ Validation errors are assigned to the response model. e.g.
|
|
239
239
|
+ [Python API Client](https://github.com/SuperSaaS/supersaas-python-api-client)
|
240
240
|
+ [PHP API Client](https://github.com/SuperSaaS/supersaas-php-api-client)
|
241
241
|
+ [NodeJS API Client](https://github.com/SuperSaaS/supersaas-nodejs-api-client)
|
242
|
-
+ [C# API Client](https://github.com/SuperSaaS/supersaas-csharp-api-client)
|
243
|
-
+ [Objective-C API Client](https://github.com/SuperSaaS/supersaas-objc-api-client)
|
244
|
-
+ [Go API Client](https://github.com/SuperSaaS/supersaas-go-api-client)
|
245
242
|
|
246
243
|
Contact: [support@supersaas.com](mailto:support@supersaas.com)
|
247
244
|
|
@@ -118,7 +118,11 @@ module Supersaas
|
|
118
118
|
code = res.code.to_i
|
119
119
|
case code
|
120
120
|
when 200, 201
|
121
|
-
|
121
|
+
if http_method == :post && res['location'] =~ /www.supersaas.com/
|
122
|
+
res['location']
|
123
|
+
else
|
124
|
+
json_body(res)
|
125
|
+
end
|
122
126
|
when 422, 400
|
123
127
|
json_body(res)
|
124
128
|
when 401
|
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
|
24
|
-
spec.add_development_dependency "bundler"
|
25
|
-
spec.add_development_dependency "rake"
|
26
|
-
spec.add_development_dependency "minitest"
|
24
|
+
spec.add_development_dependency "bundler"
|
25
|
+
spec.add_development_dependency "rake"
|
26
|
+
spec.add_development_dependency "minitest"
|
27
27
|
end
|
metadata
CHANGED
@@ -1,57 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: supersaas-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Travis Dunn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
description: Online appointment scheduler for any type of business. Flexible and affordable
|
56
56
|
booking software that can be integrated into any site. Free basic version.
|
57
57
|
email:
|