square_connect 2.4.0.170 → 2.4.0.175
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/README.md +6 -10
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 164bd7dfb404078f9769e7229f4279401d5e347b
|
|
4
|
+
data.tar.gz: 7da70e0f767aedd553f09addc9ce86ec1747cf85
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 974467a3e2712c96ab7d863f2cc4e29988c6bfbf7ec49709fe1e9c708057dd9ad878cd2a0b4cc4310166049d7d88971000f9773588171c4fd2149b09e060a776
|
|
7
|
+
data.tar.gz: d28880ee602068f6d4e58658513c3bbec05b92ff346314b0acab60e3c0977ba3c498086533efe8e6b7c3e85a38a3f040a9e5cf72a7da2e0cdfaddfe50258a27b
|
data/README.md
CHANGED
|
@@ -57,19 +57,15 @@ SquareConnect.configure do |config|
|
|
|
57
57
|
config.access_token = 'YOUR ACCESS TOKEN'
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
# The SDK throws an exception if a Connect endpoint responds with anything besides 200 (success).
|
|
61
|
+
# This block catches any exceptions that occur from the request.
|
|
62
|
+
locations_api = SquareConnect::LocationsApi.new
|
|
65
63
|
begin
|
|
66
|
-
|
|
67
|
-
result = api_instance.register_domain(body)
|
|
68
|
-
p result
|
|
64
|
+
locations = locations_api.list_locations.locations
|
|
69
65
|
rescue SquareConnect::ApiError => e
|
|
70
|
-
puts "
|
|
66
|
+
puts "Error encountered while loading the locations: #{e.message}"
|
|
67
|
+
return
|
|
71
68
|
end
|
|
72
|
-
|
|
73
69
|
```
|
|
74
70
|
|
|
75
71
|
## Documentation for API Endpoints
|