infusionsoft 1.3.7 → 1.3.8
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/lib/infusionsoft/request.rb +6 -6
- data/lib/infusionsoft/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: ea35395f1dd718a10887faf5fde10986bb658cc3c28dd3aec7fbbbf3ff4e1058
|
4
|
+
data.tar.gz: 541264f30104fd6f03efd6f43c493b4f38c1c770bdadcf95a1991aefc1371d47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25352e66189393eb9b4f80e19d300b6800217fd66278be8cb47cce79ec5680d0e57f787d3d4d2c7da56a8673be75d9a37561ffa12a668aa00c11537100ee0ebb
|
7
|
+
data.tar.gz: 4067b6d54ac04cff0dcecc40227a13831c1af7cdbebcff1158073b5c8d056fd6ac66b3988a56ff22043a69f523526408061e8091a22c2cf402a1d72d17d8d06a
|
data/lib/infusionsoft/request.rb
CHANGED
@@ -9,32 +9,32 @@ module Infusionsoft
|
|
9
9
|
|
10
10
|
# Perform an GET request
|
11
11
|
def get(path, token, query: {}, version: 'v1')
|
12
|
-
request(:get, path, token, query: query
|
12
|
+
request(:get, path, token, version, query: query)
|
13
13
|
end
|
14
14
|
|
15
15
|
def post(path, token, query: {}, payload: {}, version: 'v1')
|
16
|
-
request(:post, path, token, query, payload
|
16
|
+
request(:post, path, token, version, query, payload)
|
17
17
|
end
|
18
18
|
|
19
19
|
# Perform an HTTP PUT request
|
20
20
|
def put(path, token, query: {}, payload: {}, version: 'v1')
|
21
|
-
request(:put, path, token, query, payload
|
21
|
+
request(:put, path, token, version, query, payload)
|
22
22
|
end
|
23
23
|
|
24
24
|
# Perform an HTTP PATCH request
|
25
25
|
def patch(path, token, query: {}, payload: {}, version: 'v1')
|
26
|
-
request(:patch, path, token, query, payload
|
26
|
+
request(:patch, path, token, version, query, payload)
|
27
27
|
end
|
28
28
|
|
29
29
|
# Perform an HTTP DELETE request
|
30
30
|
def delete(path, token, query: {}, version: 'v1')
|
31
|
-
request(:delete, path, token,
|
31
|
+
request(:delete, path, token, version, query)
|
32
32
|
end
|
33
33
|
|
34
34
|
private
|
35
35
|
|
36
36
|
# Perform request
|
37
|
-
def request(method, path, token, query={}, payload={}
|
37
|
+
def request(method, path, token, version, query={}, payload={})
|
38
38
|
path = "/#{path}" unless path.start_with?('/')
|
39
39
|
header = {
|
40
40
|
authorization: "Bearer #{token.access_token}",
|
data/lib/infusionsoft/version.rb
CHANGED