, 02 2010 . 16:22
+
OAuth, .
OAuthUtility,
blogsapi.
. , , (tokens.ConsumerKey,tokens.ConsumerSecret). (response.Token), (OAuthUtility.BuildAuthorizationUri(response.Token)) . , , , , authenticity_token. , PIN, , . , . OAuthUtility.GetAccessToken, . , .
, , 4 , 2 .
- , , , . , , -, .
, , :
"" .
...
, 31 2010 . 16:10
+
, 25 2010 . 13:48
+
- Tr.im. , Bit.ly, . BlogsAPI, :
Copy Source | Copy HTML- [TestFixture]
- public class Shorteners
- {
- private void RunTest(Shortener oServer)
- {
- String sRet = oServer.ConvertDataTo("http://s-c.me", ItemType.FullUrl, ItemType.ShortUrl);
- Assert.AreEqual(false,String.IsNullOrEmpty(sRet));
- Debug.WriteLine("Returns: " + sRet);
- sRet = oServer.ConvertDataTo(sRet, ItemType.ShortUrl, ItemType.FullUrl);
- if(!String.IsNullOrEmpty(sRet))
- {
- Debug.WriteLine("BackTrace: "+sRet);
- }
- }
-
- [Test]
- public void Bitly()
- {
- RunTest(new BitLy());
- }
-
- [Test]
- public void Cligs()
- {
- RunTest(new Cligs());
- }
-
-
- [Test]
- public void Isgd()
- {
- RunTest(new Isgd());
- }
- }