示例#1
0
        public void UserLinkHistoryTest()
        {
            var bitly = new Bitly(TestContext.Properties["apikey"].ToString());
            var result = bitly.UserLinkHistory();
            Assert.IsTrue(result.data.link_history.Any());
            var resultSample = result.data.link_history.First(lh => lh.long_url == "https://www.google.ca/");

            Assert.AreEqual("http://s.phansoft.ca/googletestphan", resultSample.keyword_link);
        }