easypost 7.5.0 → 7.6.0
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/VERSION +1 -1
- data/lib/easypost/client.rb +16 -0
- 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: 0fea5a7b6c529207dce7950344ebfa7dacab20a5a03b89c20b9204f905226504
|
|
4
|
+
data.tar.gz: ccd5ee4596fbf4a4f3d52452a93984ed5774ab4b74d76e82c4b4fa8a77a8b836
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6a28525b29aed5376549c00422989c6d200d0db98085d0b414f311395c02c8b49ad8bd053d7f10ce02bc2ef2c0d39ecb9b627b2e24062d9c53e33db8033b0251
|
|
7
|
+
data.tar.gz: 3192c31ca964081536029824c38b5c7d942893a7fb798118495bfec3e616da789950befd5b201f372892af6ef53376408a6c8b965bbf30098b9e5e217c0772de
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.6.0
|
data/lib/easypost/client.rb
CHANGED
|
@@ -144,6 +144,22 @@ class EasyPost::Client
|
|
|
144
144
|
EasyPost::Hooks.unsubscribe_all(:response)
|
|
145
145
|
end
|
|
146
146
|
|
|
147
|
+
# Make an API call to the EasyPost API
|
|
148
|
+
#
|
|
149
|
+
# This public, generic interface is useful for making arbitrary API calls to the EasyPost API that
|
|
150
|
+
# are not yet supported by the client library's services. When possible, the service for your use case
|
|
151
|
+
# should be used instead as it provides a more convenient and higher-level interface depending on the endpoint.
|
|
152
|
+
#
|
|
153
|
+
# @param method [Symbol] the HTTP Verb (get, post, put, patch, delete, etc.)
|
|
154
|
+
# @param endpoint [String] URI path of the resource
|
|
155
|
+
# @param params [Object] (nil) object to be used as the request parameters
|
|
156
|
+
# @return [EasyPost::Models::EasyPostObject] EasyPost object parsed from the response body
|
|
157
|
+
def make_api_call(method, endpoint, params = nil)
|
|
158
|
+
response = make_request(method, endpoint, params)
|
|
159
|
+
|
|
160
|
+
EasyPost::InternalUtilities::Json.convert_json_to_object(response)
|
|
161
|
+
end
|
|
162
|
+
|
|
147
163
|
private
|
|
148
164
|
|
|
149
165
|
def http_config
|