qbo_api 1.6.5 → 1.6.6
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 +7 -5
- data/lib/qbo_api/util.rb +6 -1
- data/lib/qbo_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdc10d932fd283adbce9198fdd164ab9cbf059c5
|
4
|
+
data.tar.gz: 7ab9647de1f34b36978a3718474cb6644461f1b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 701c4e1075f1e97533d2ee3e26867ae1b428a93dd8193e46009fea36cac835fd8a7c6b33de2315762d5af7c0ca00e362a01fcb04f663dd308bacd7c65f1bbdfd
|
7
|
+
data.tar.gz: 73db5f7dada2e5d9a9a6fc7906e3ea974a4b5911f6e96ff9d359a0bc3a7b935ab89563be79a7a7135810c95400b10c760e16737dfcba42d50c340b059c60eb80
|
data/README.md
CHANGED
@@ -12,7 +12,9 @@ Ruby client for the QuickBooks Online API version 3.
|
|
12
12
|
- <a href="http://minimul.com/getting-started-with-the-modern-ruby-quickbooks-online-client-qbo_api-part-1.html" target="_blank">Part 1</a>: Learn how to spin up the <a href="https://github.com/minimul/qbo_api#spin-up-an-example">example app</a>.
|
13
13
|
- <a href="http://minimul.com/the-modern-ruby-quickbooks-client-part-2.html" target="_blank">Part 2</a>: <a href="https://github.com/minimul/qbo_api#running-the-specs">Running the specs</a> to aid you in understanding a QuickBooks API transaction.
|
14
14
|
- <a href="http://minimul.com/the-modern-ruby-quickbooks-client-contributing.html" target="_blank">Part 3</a>: <a href="https://github.com/minimul/qbo_api#creating-new-specs-or-modifying-existing-spec-that-have-been-recorded-using-the-vcr-gem">Contributing to the gem</a>.
|
15
|
-
|
15
|
+
### Important Note: The videos are out of date.
|
16
|
+
If you signed up for a Intuit developer account after July 17th, 2017 then you will have to
|
17
|
+
follow <a href='#OAuth2-example'>OAuth2: Spin up an example</a>
|
16
18
|
## The Book
|
17
19
|
|
18
20
|
<a href="https://leanpub.com/minimul-qbo-guide-vol-1" target="_blank">
|
@@ -162,19 +164,19 @@ QboApi.minor_version = 8
|
|
162
164
|
p response['DisplayName'] # => "Dukes Basketball Camp"
|
163
165
|
```
|
164
166
|
|
165
|
-
### Get an entity by one its
|
167
|
+
### Get an entity by one of its filter attributes
|
166
168
|
```ruby
|
167
169
|
response = qbo_api.get(:customer, ["DisplayName", "Dukes Basketball Camp"])
|
168
170
|
p response['Id'] # => 5
|
169
171
|
```
|
170
172
|
|
171
|
-
### Get an entity by one its
|
173
|
+
### Get an entity by one of its filter attributes using a LIKE search
|
172
174
|
```ruby
|
173
175
|
response = qbo_api.get(:customer, ["DisplayName", "LIKE", "Dukes%"])
|
174
176
|
p response['Id'] # => 5
|
175
177
|
```
|
176
178
|
|
177
|
-
### Get an entity by one its
|
179
|
+
### Get an entity by one of its filter attributes using a IN search
|
178
180
|
```ruby
|
179
181
|
response = qbo_api.get(:vendor, ["DisplayName", "IN", "(true, false)"])
|
180
182
|
p response.size # => 28
|
@@ -332,7 +334,7 @@ See [docs](https://developer.intuit.com/docs/0100_quickbooks_online/0100_essenti
|
|
332
334
|
p qbo_api.is_transaction_entity?(:customer) # => false
|
333
335
|
p qbo_api.is_name_list_entity?(:vendors) # => true
|
334
336
|
```
|
335
|
-
## OAuth2: Spin up an example
|
337
|
+
## <a name='OAuth2-example'>OAuth2: Spin up an example</a>
|
336
338
|
### If you signed up for a Intuit developer account after July 17th, 2017 follow this example
|
337
339
|
- <a href="http://minimul.com/access-the-quickbooks-online-api-with-oauth2.html" target="_blank">Check out this article on spinning up the OAuth2 example</a>.
|
338
340
|
- `git clone git://github.com/minimul/qbo_api && cd qbo_api`
|
data/lib/qbo_api/util.rb
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
class QboApi
|
2
2
|
module Util
|
3
|
+
attr_writer :minor_version
|
4
|
+
|
5
|
+
def minor_version
|
6
|
+
@minor_version || QboApi.minor_version
|
7
|
+
end
|
3
8
|
|
4
9
|
def esc(query)
|
5
10
|
query.gsub("'", "\\\\'")
|
@@ -33,7 +38,7 @@ class QboApi
|
|
33
38
|
end
|
34
39
|
|
35
40
|
def add_minor_version_to(path)
|
36
|
-
if minor_version =
|
41
|
+
if minor_version = self.minor_version
|
37
42
|
add_params_to_path(path: path, params: { "minorversion" => minor_version })
|
38
43
|
else
|
39
44
|
path
|
data/lib/qbo_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qbo_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christian Pelczarski
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|