def get_photos_by_album(*, client: Resource, album_id: str) -> List[Dict[str, Any]]: """Get the meta data for all photos for this album.""" body = { "albumId": album_id, "pageSize": _MEDIA_ITEMS_PAGE_SIZE, } return _do_pagination(executable=client.mediaItems().search, body=body, parameters=None, object_name="mediaItems")
def search_photos(*, client: Resource, start_date: date) -> List[Dict[str, Any]]: """Get the meta data for all photos since start date.""" body = { "filters": _create_start_date_filter(start_date=start_date), "pageSize": _MEDIA_ITEMS_PAGE_SIZE, } return _do_pagination(executable=client.mediaItems().search, body=body, parameters=None, object_name="mediaItems")