// Neds testing #region WoW Profile public ProfileRoot GetProfile(string accessToken) { var profile = new ProfileRoot(); var url = string.Format(@"{0}/wow/user/characters?access_token={1}", _Host, accessToken); profile = json.GetDataFromURL <ProfileRoot>(url); return(profile); }
// Needs testing #region WoW Profile public async Task <ProfileRoot> GetProfile(string accessToken) { var profile = new ProfileRoot(); var url = string.Format(@"/wow/user/characters?access_token={0}", _Host, accessToken); profile = await this.jsonUtility.GetDataFromURLAsync <ProfileRoot>(url); return(profile); }