A .NET GiantBomb API built on top of RestSharp Portable
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.nuget
.vs/config
GiantBomb.Api.Tests
GiantBomb.Api
.gitignore
.travis.yml
CHANGELOG.md
GiantBomb.sln
LICENSE.txt
Readme.md

Readme.md

GiantBomb C#

Build status
Build Status

This library aims to wrap the GiantBomb REST API in C# with strongly-typed models and is built on top of RestSharp Portable.

It also helps make your life easier when dealing with searching because it recursively fetches your search results all at once to enable better sorting.

Note: This is not really needed anymore due to search improvements in APIv2

var giantBomb = new GiantBombRestClient();

// Get all search results
var results = giantBomb.SearchForAllGames("assassin's creed");

// Display
return results.OrderByDescending(g => g.DateAdded)

It's also easy to extend to support other GiantBomb resource types that aren't included by default. Just create a C# class representing the model and use GetSingleResource or GetListResource:

var giantBomb = new GiantBombRestClient();

// Get video
var video = await giantBomb.GetSingleResourceAsync<MyCustomVideoModel>("video", 2300, 123456);

Nuget

Download and install the GiantBomb.Api Nuget package:

PM> Install-Package GiantBomb.Api

Supported Platforms

This project targets .NET Standard 1.2

  • .NET Core 1.0+
  • .NET 4.5.1+
  • Mono 4.6+
  • Xamarin.iOS 10.0+
  • Xamarin.Android 7.0+
  • UWP 10.0+
  • Windows 8.1
  • Windows Phone 8.1

Contributing

Read about contributing on the wiki. If you plan to contribute, you must read this.

Examples

Read about examples on the wiki.

License

Dual-licensed on MIT & GPL

Changelog

See CHANGELOG