This repo contains a basic Hasheous Client .NET based applications.
- Add the repo to your project:
dotnet add package hasheous-client
- Set the base URI:
HasheousClient.WebApp.HttpHelper.BaseUri = "https://hasheous.org/";
- Set the Hasheous API key:
Note: Only the metadata proxy and fix match endpoints require an API key.
If you don't plan on using these endpoints, the API key can be safely ommitted.
HasheousClient.WebApp.HttpHelper.APIKey = "<Your API key here>";
- Create a new Hasheous Client object:
HasheousClient.Hasheous hasheous = new HasheousClient.Hasheous();
LookupItemModel? HasheousResult = hasheous.RetrieveFromHasheous(new HashLookupModel
{
MD5 = "7a61d6a9bd7ac1a3249ef167ae136af7"
});
LookupItemModel? HasheousResult = hasheous.RetrieveFromHasheous(new HashLookupModel
{
SHA1 = "dc56fdcb9181b5ea04b95049997ceea2654aab78"
});
List<DataObjectItem> platforms = hasheous.GetPlatforms();
HasheousClient.Models.Metadata.IGDB.Game metadataProxy = hasheous.GetMetadataProxy<HasheousClient.Models.Metadata.IGDB.Game>(HasheousClient.Hasheous.MetadataProvider.IGDB, 3192);
HasheousClient.Models.Metadata.IGDB.Game metadataProxy = hasheous.GetMetadataProxy<HasheousClient.Models.Metadata.IGDB.Game>(HasheousClient.Hasheous.MetadataProvider.IGDB, "sonic-the-hedgehog");