-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove api_version as there is only one
- Loading branch information
1 parent
dd54575
commit 433b6fd
Showing
5 changed files
with
19 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,26 @@ | ||
# The Lord of the Rings API | ||
|
||
``` | ||
import 'package:lotr_api/lotr_api.dart'; | ||
void main() async { | ||
var lotrApi = LotrApi( | ||
apiKey: 'INSERT_YOUR_API_ACCESS_KEY_HERE', | ||
); | ||
Response<Quote> quotes = await lotrApi.getQuotes( | ||
sorting: QuoteSortings.byDialogAsc, | ||
var quotes = await lotrApi.getQuotes( | ||
pagination: Pagination( | ||
limit: 10, | ||
offset: 2, | ||
), | ||
sorting: QuoteSortings.byIdAsc, | ||
idFilters: [ | ||
Exists(), | ||
], | ||
dialogFilters: [ | ||
MatchesRegex('Frodo'), | ||
MatchesRegex('Saruman'), | ||
], | ||
); | ||
print(quotes); | ||
print(quotes.docs); | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters