codetheweb / anylist

📋 a wrapper for AnyList's API (unoffical, reverse engineered)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can we get the price / Total cost from Nodejs?

Mannitou opened this issue · comments

Hello,

I know that we get the quantity but can I get the total cost of an item?

picture of Anylist:
https://help.anylist.com/img/articles/item-prices/adjust-quantity-for-total-cost-1.png

I am trying to keep track of my budget with the anylist software.

Thanks,

Pascal Manni

I don't remember all the data that's returned but I believe this should be available.

Did you try it out yet?

thanks for your message,

I find in "anylist/lib/definitions.json":
{"rule":"optional","type":"PBItemPrice","name":"itemPrice","id":16}

but if I go to anylist/lib/item.js
I cannot find any constructor or methode to get the itemPrice and totalPrice ( Quantity * itemPrice).

I belive we need some extra line to make it available.

I see, happy to accept a PR for it. :)