KeenenCharles / AndroidUnplash

An unofficial Unsplash API library for Android
MIT License
85 stars 22 forks source link

Question about tracking downloads #30

Closed SeanBlahovici closed 3 years ago

SeanBlahovici commented 3 years ago

Hey there, great library!

From the Unsplash guidelines, I see we must trigger a "trackDownload" call when one of our users selects/uses a specific photo. At first glance, I have not found a way to do this through this library. Is it included somewhere? Thanks!

Edit: Is it possible that the Unsplash.photos.search with query, which returns a payload with download links, does this automatically track downloads?

KeenenCharles commented 3 years ago

Hey Sean you can track downloads by calling the getDownloadLink() function with the id of the photo