コード例 #1
0
        public void Can_Get_Show()
        {
            var service = new WeiboService(_consumerKey, _consumerSecret, _accessToken);
            var result  = service.GetWeiboShow(3542088886978668);

            Assert.IsNotNull(result);
            Console.WriteLine("Create at: {0} Screen name: {1} Text: {2} ", result.CreatedAt, result.User.ScreenName, result.Text);
            if (result.Annotations != null)
            {
                foreach (var annotation in result.Annotations)
                {
                    Console.WriteLine("Fid: {0}", annotation.Fid);
                }
            }

            if (result.Geo != null)
            {
                Console.WriteLine("Type: {0} Latitude: {1} Longitude: {2}", result.Geo.Type, result.Geo.Coordinates.Latitude, result.Geo.Coordinates.Longitude);
            }

            if (result.Visible != null)
            {
                Console.WriteLine("Type: {0} List id: {1}", result.Visible.Type, result.Visible.ListId);
            }
        }