This project is read-only.

Basic usage of this library

Jul 29, 2016 at 1:07 AM
Firstly thank for your effort.
I am very happy that some one create so amazing things as this library.

I had installed library but i can't understand how to use it.
I have tried use example code

using WOWSharp.Community;
using WOWSharp.Community.Wow;
using System;
using System.Collections.Generic;

public class WowTest
{
    static void Main()
    {
WowClient client = new WowClient(Region.EU);


        var character = client.GetCharacterAsync("kazzak", "Grendiser", CharacterFields.All).Result;
        Console.WriteLine (character);
        Console.ReadKey ();


    }
}
and i have got an Exception System.AggregateException with innerException "ApiStatus System.NullReferenceException: Object reference not set to an instance of an object "
I had tried a code with my blizzard Api Key Pair
    ApiKeyPair appkey = new ApiKeyPair ("t3av2ugv2jt9bhbbunyha5ry7cab3wyc", "ymnE2m79TJeQQsnBNh3srq9E6NWF2XYd");
        WowClient client = new WowClient ("EU", appkey , "ru-RU");


            var character = client.GetCharacterAsync ("kazzak", "Grendiser", CharacterFields.All).Result;
    Console.WriteLine (character);
        Console.ReadKey ();
And I have got an Exception System.AggregateException with innerException too.

Please, tell me what I have done wrong?
Or maybe you can give me example code.
Thank you.