public TrackData GetTrack(long track_id)
        {
            const string pattern = Path + "/{0}.json";
            string requestUriString = string.Format(pattern, track_id);
            IRequestInfo requestInfo = new RequestInfoImp()
            {
                UriString = RequestUtility.GetOAuthRequestUriString(_oauth, requestUriString),
            };

            string json = RequestUtility.GetResponseString(requestInfo);
            var result = JsonHelper.Deserialize<TrackData>(json);
            return result;
        }
Esempio n. 2
0
        public MeData GetMe()
        {
            const string pattern = Path + ".json";
            string requestUriString = pattern;
            IRequestInfo requestInfo = new RequestInfoImp()
            {
                UriString = RequestUtility.GetOAuthRequestUriString(_oauth, requestUriString),
            };

            string json = RequestUtility.GetResponseString(requestInfo);
            var result = JsonHelper.Deserialize<MeData>(json);
            return result;
        }