codetheweb / anylist

📋 a wrapper for AnyList's API (unoffical, reverse engineered)
88 stars 23 forks source link

Can we get the price / Total cost from Nodejs? #26

Closed Mannitou closed 1 year ago

Mannitou commented 1 year ago

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

codetheweb commented 1 year ago

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

Did you try it out yet?

Mannitou commented 1 year ago

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.

codetheweb commented 1 year ago

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