Beispiel #1
0
        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);
        }
Beispiel #2
0
        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();
             *  }
             * }
             */
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
        private static dynamic GetProfile(string component)
        {
            var profileJson = Oauth.AccessResourceGet(string.Format("/Destiny2/{0}/Profile/{1}?components={2}", membershipType, dMembershipId, component));

            return(profileJson);
        }