Skip to content

Commit

Permalink
Update README.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
david_smith committed Dec 30, 2024
1 parent f86216c commit a516957
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ $OmdbApi->search('Avatar')['Search'][0]['Year']; // 2009
$OmdbApi->poster('tt0499549'); // https://img.omdbapi.com/?apikey=8f8423aa&i=tt0499549
```

- [Requirements](#requirements)
- [Getting an OMDb API Key](#getting-an-omdb-api-key)
- [Installation](#installation)
- [Usage](#usage)
- [Methods Overview](#methods-overview)
- [byIdOrTitle()](#byidortitle)
- [search()](#search)
- [poster()](#poster)
- [Error Handling](#error-handling)
- [Testing](#testing)
- [Contributing](#contributing)

## Requirements

- PHP 8.1 or higher.
Expand Down Expand Up @@ -205,7 +217,7 @@ Get the direct URL to the poster image for a given IMDb ID.
$OmdbApi->poster('tt0499549'); // https://img.omdbapi.com/?apikey=8f8423aa&i=tt0499549
```

### Error Handing
### Error Handling

When a request fails (for example, if no matching title is found, cURL fails to initialize, or an invalid response comes back), the returned array
includes:
Expand Down

0 comments on commit a516957

Please sign in to comment.