stravalib.client.Client.get_activity_photos#
- Client.get_activity_photos(activity_id, size=None, only_instagram=False)[source]#
Gets the photos from an activity.
https://developers.strava.com/docs/reference/#api-Activities
- Parameters:
activity_id (int) – The activity for which to fetch photos.
size (int, default=None) – the requested size of the activity’s photos. URLs for the photos will be returned that best match the requested size. If not included, the smallest size is returned
only_instagram (bool, default=False) – Parameter to preserve legacy behavior of only returning Instagram photos.
- Returns:
class – An iterator of
stravalib.model.ActivityPhotoobjects.- Return type:
BatchedResultsIterator