minimul / qbo_api

Ruby JSON-only client for QuickBooks Online API v3. Built on top of the Faraday gem.
MIT License
85 stars 45 forks source link

"Get" seems to be throwing a debug notification? #92

Closed joshk6 closed 5 years ago

joshk6 commented 5 years ago

When I execute a get request for a purchase order, I'm getting the following in my console. I didn't write it so I'm guessing its coming from the gem somewhere?

It looks like what's happening is that entity_name is set to "Purchaseorder" instead of "PurchaseOrder"?

D, [2018-10-09T10:39:45.808334 #74262] DEBUG -- : [QuickBooks] entity name not in response body: entity="PurchaseOrder" entity_name="Purchaseorder" body={"PurchaseOrder"=>{"ShipAddr"=>

minimul commented 5 years ago

I suspect you're doing: qbo_api.get :purchaseorder, 100

Needs to be snake case:

qbo_api.get :purchase_order, 100