igdb_client 0.0.1 copy "igdb_client: ^0.0.1" to clipboard
igdb_client: ^0.0.1 copied to clipboard

outdated

A dart library for IGDB API

igdb_client #

A Dart library for using the IGDB.com API v3 https://api-docs.igdb.com/

It is highly recommended to read through the IGDB documentation to understand what exactly you can do with the API.

Limitations #

IGDB user authentication is not supported and I don't have any plans to support it.

Usage #

See example/igdb_client_example.dart for a more in depth example of some of the things you can do with this client. Otherwise a simple example can be found below.

import 'package:igdb_client/igdb_client.dart';

var client = new IGDBClient(
  'your_user_agent',
  'your_api_key',
);

var gamesResponse = await client.games(new IGDBRequestParameters(
  limit: 3
));

print(IGDBClient.getPrettyStringFromMap(gamesResponse.toMap()));

if (gamesResponse.isSuccess()) {
  // do something with gamesResponse.data
}
else {
  // do something depending on gamesResponse.error
}
3
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A dart library for IGDB API

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http

More

Packages that depend on igdb_client