2010-12-13 17 views

答えて

4

私はそれがどのように動作するか確認するために自分自身を関心を持っていた、これはあなたが始められるかもしれません:

Option Infer On 

Imports System.Net 
Imports System.Web 

Module Module1 
    Sub Main() 
     Dim wc = New WebClient() 
     Dim login = "your_login" 
     Dim apiKey = "your_apikey" 
     Dim longUrl = HttpUtility.UrlEncode("http://stackoverflow.com/questions/4427104/vb-is-there-any-possibility-to-call-the-bit-ly-api") 
     Dim request = String.Format("http://api.bit.ly/v3/shorten?login={0}&apiKey={1}&longUrl={2}&format=txt", login, apiKey, longUrl) 
     Dim result = wc.DownloadString(request) 
    End Sub 

End Module 

APIのドキュメントでは、ここで見つけることができます:私は、彼らがbit.ly使用2例を見つけhttp://code.google.com/p/bitly-api/wiki/ApiDocumentation

+0

ありがとう!今私はそれを得た;) –

関連する問題