gusto_api 0.1.1 → 0.1.2
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/CHANGELOG.md +4 -0
- data/README.md +8 -0
- data/lib/gusto_api.rb +1 -0
- data/lib/gusto_api/request.rb +3 -1
- data/lib/gusto_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 842a1fbf1bfbbc65589efc1cd84e3b862bb90dcc145f3ad40ee9ba23899097c3
|
4
|
+
data.tar.gz: 31a3c2ff7404edc67465e4ba76fe34072ae83a60f8a5fd84fbe2dae939cd0b95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06a1cbbd5ccf2b236fbf537663075b1a24c647d3366549f61d0c795996929de8ff4703a0c6a2b9b00ac026478e52c9e1f9249099fc02d68992a55ab2ca417113
|
7
|
+
data.tar.gz: d90ecac0c15e799c51456f9c9c2109536dd546d4b8eb25c584c0d497cb2f7915b22aa810456d4c9ac85bdd2da9cccf9f95009de9db86b94e5ab4e3e7f2509c53
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -146,6 +146,14 @@ This will return a hash:
|
|
146
146
|
|
147
147
|
```
|
148
148
|
|
149
|
+
### Errors
|
150
|
+
|
151
|
+
If you're missing an argument or something, the gem will raise `GustoApi::Error` with a hopefully helpful message.
|
152
|
+
|
153
|
+
If Gusto responds to an API call with a `401`, the gem will raise `GustoApi::InvalidAuthError`.
|
154
|
+
|
155
|
+
Other errors are not yet handled and you'll get a `HTTParty::Response` instance which responds to `code`.
|
156
|
+
|
149
157
|
### Getting a Company's Employees
|
150
158
|
|
151
159
|
This and most other endpoints require getting an `access_token` via OAuth.
|
data/lib/gusto_api.rb
CHANGED
data/lib/gusto_api/request.rb
CHANGED
data/lib/gusto_api/version.rb
CHANGED