KeenenCharles / AndroidUnplash

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

getting user profile pic #8

Closed velocity24 closed 6 years ago

velocity24 commented 6 years ago

how can i get the user profile pic and display it on imageview tried final ProfileImage proImage =photo.getUser().getProfileImage();

KeenenCharles commented 6 years ago

After you get the profile image you can use .getLarge(), getMedium() or .getSmall() to get the url to the profile photo then you can display it on the imageview.

velocity24 commented 6 years ago

Thanks it worked, and one more thing how can we get the photos from a collection.I managed to get the collections list but how do we get the photos from that colletion after passing the id.

KeenenCharles commented 6 years ago

You need to call getCollectionPhotos with the collection id

velocity24 commented 6 years ago

Nice!!.Could you please give an exaple for getting date and location

KeenenCharles commented 6 years ago

For a photo try getCreatedDate() & getLocation()