We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
您只需向
http://tinyurl.com/api-create.php?url={url}
发出请求,并将{url}
替换为您的 url想要并阅读页面的内容。这是一个例子:
You just need to make a request to
http://tinyurl.com/api-create.php?url={url}
substituting the{url}
with the url you want and read the content of the page.Here's an example:
我刚刚发表了一篇文章关于在 C# 应用程序中从 bit.ly 执行此操作。
请注意,bit.ly 需要一个免费的登录密钥,您需要该密钥才能使代码正常工作。
I just published an article about doing this from bit.ly in a C# application.
Note that bit.ly requires a free login key that you will need in order for the code to work.
您可以在 http://psc.fyi 上找到一个很好的示例。
您可以在 http://puresourcecode.com/dotnet/post/Creating-a-使用 ASPNET-WepAPI 和 MVC 的 URL 缩短器
you can find a nice example on http://psc.fyi
You can find an explanation on http://puresourcecode.com/dotnet/post/Creating-a-URL-shortener-using-ASPNET-WepAPI-and-MVC