Using tinyurl.com in a .Net application … possible?

后端 未结 6 1022
栀梦
栀梦 2020-12-28 08:24

I found the following code to create a tinyurl.com url:

http://tinyurl.com/api-create.php?url=http://myurl.com

This will automatically crea

6条回答
  •  我在风中等你
    2020-12-28 09:05

    You have to call that URL from your code, then read back the output from the server and process it.

    Have a look at the System.Net.WebClient class, DownloadString (or better: DownloadStringAsync) seems to be what you want.

提交回复
热议问题