NeoDigi / igdb_wrapper

Java API Wrapper
https://pub.dartlang.org/packages/igdb_wrapper
MIT License
2 stars 0 forks source link

Authentication failed #2

Open d-apps opened 5 years ago

d-apps commented 5 years ago

When I try to search something using the method below I always get this error, could you please help me with that?

I/flutter (27126): zelda I/flutter (27126): https://api-endpoint.igdb.com/games/?search=zelda?fields=* I/flutter (27126): RESULT BODY: Authentication failed

import 'package:igdb_wrapper/igdb_wrapper.dart';

class ApiHelper {

  static const String API_KEY = 'xxxxx';

  static void apiSearch(String text){

    final IGDBWrapper wrapper = new IGDBWrapper(API_KEY, version: Version.STANDARD, debug: true);

    var p = new Parameters().addSearch(text);

    wrapper.games(p).then((result)=> print("RESULT BODY: ${result.body}"));

  }
}
torbenkeller commented 5 years ago

I think this is because its for the old api and not v3. Would love to see if the library gets updated