Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm beginner in the web, I'll post in Twitter the shortcut links using bitly, How can i do this ?

I am sorry for my bad english

thanks,
Posted
Updated 3-May-20 6:51am

To create bit.ly urls using C#, you will need to use their API and sign up to get a developer's account. Here is an example of how to access their API using C#:

https://sites.google.com/site/bitlyapp/[^]

To access twitter using C#, you will use a similar method (including signing up for a developer's account). Here is an example of how to do that:

http://www.dotnetspark.com/kb/1924-creating-simple-twitter-client-application.aspx[^]
 
Share this answer
 
Comments
saisne 20-Jun-12 7:17am    
@Tim Corey Thanks, its work good
in Solution 3 move ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072

before creating request:

HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://api-ssl.bitly.com/v4/shorten")

and it will work. Also refine regex search.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900