Getting the Collection Values #54
-
Hey, I'm trying to fetch my collections values on an hourly base but at this time I think its not possible with this client version (or did i oversee sth?). Discogs has an Endpoint for that i created a workaround but i wanted to ask if its planned in further versions to get the values with this client ? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hey @Corno1 thanks for reaching out. I'm guessing you mean this endpoint? If so, you're right we haven't included it in our client yet, but I see no reason why we cannot. I'll try get this done for you this week if that is okay, feel free to submit a PR if you would like to give it a go yourself though, we always welcome contributions 🙂 |
Beta Was this translation helpful? Give feedback.
-
Hey @Corno1, hope you're well. That PR has been merged and released now, so by downloading the latest version of the client you're able to get your own collection value 🙂 This can be used like so: >>> import discogs_client
>>> d = discogs_client.Client("TestCollectionValue", user_token="...")
>>> me = d.identity()
>>> me.collection_value
<CollectionValue £1,000,000.10>
>>> print(me.collection_value.median, me.collection_value.maximum, me.collection_value.minimum)
£1,000,000.10 £2,000,000.10 £500,000.10
>>> Remember you have to be authenticated to be able to access your collection value. Going to mark this as answered, please reopen if there is anything I've missed. Enjoy! |
Beta Was this translation helpful? Give feedback.
Hey @Corno1, hope you're well. That PR has been merged and released now, so by downloading the latest version of the client you're able to get your own collection value 🙂
This can be used like so:
Remember you have to be authenticated to be able to access your collection value. Going to mark this as answered, please reopen if there is anything I'…