private static void GetId() { var response = Oauth.AccessResourceGet(string.Format("/User/GetMembershipsById/{0}/{1}", membershipId, membershipType)); dMembershipId = response.Response.destinyMemberships[0].membershipId; Console.WriteLine("Destiny Id: " + dMembershipId); }
public static void GetDestinyManifest() { var contentPath = Oauth.AccessResourceGet("/Destiny2/Manifest").Response.mobileWorldContentPaths.en; string maniUrl = "http://www.bungie.net" + contentPath; Console.WriteLine(maniUrl); /* * using (HttpClient client = new HttpClient()) * { * var responseTask = client.GetAsync(maniUrl); * responseTask.Wait(); * using (StreamWriter sw = new StreamWriter(Directory.GetCurrentDirectory() + @"\MANZIP.content")) * { * sw.Write(responseTask.Result.Content.); * sw.Close(); * } * } */ }
public static dynamic GetCharacterInfo(string classType, string component) { var json = Oauth.AccessResourceGet(string.Format("/Destiny2/{0}/Profile/{1}/Character/{2}?components={3}", membershipType, dMembershipId, characters[classType], component)); return(json); }
private static dynamic GetProfile(string component) { var profileJson = Oauth.AccessResourceGet(string.Format("/Destiny2/{0}/Profile/{1}?components={2}", membershipType, dMembershipId, component)); return(profileJson); }