Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Fix indentiation of for-loop in user-album example #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ For endpoints that require usernames, once a user is authenticated we can use th

```python
for album in client.get_account_albums('me'):
album_title = album.title if album.title else 'Untitled'
print('Album: {0} ({1})'.format(album_title, album.id))
album_title = album.title if album.title else 'Untitled'
print('Album: {0} ({1})'.format(album_title, album.id))

for image in client.get_album_images(album.id):
image_title = image.title if image.title else 'Untitled'
print('\t{0}: {1}'.format(image_title, image.link))
for image in client.get_album_images(album.id):
image_title = image.title if image.title else 'Untitled'
print('\t{0}: {1}'.format(image_title, image.link))

# Save some API credits by not getting all albums
break
# Save some API credits by not getting all albums
break
```

***Output***
Expand Down