开发者

how to test a twitter api on your local machine

开发者 https://www.devze.com 2022-12-28 09:23 出处:网络
i am using twitterizer to have a web front end to twitter data.I\'m trying to figure out how i can test on a localmachine when you have to put in a valid public callback url in your application regist

i am using twitterizer to have a web front end to twitter data. I'm trying to figure out how i can test on a localmachine when you have to put in a valid public callback url in your application registration. The twitter page doesn't let you have a callback url like this:

开发者_Python百科http://localhost:3444/Callback . .

any suggestions?


You can use http://127.0.0.1:port/...

The Twitterizer example application is already setup to test locally.

Ricky (The guy who made Twitterizer)


Instead of localhost can you use your IP?

You can get it using whatismyip.com.

HTH


Use a service like No-Ip to setup a static dns name for your dynamic ip and then use it in your api call.


If you're integrating this library into your application I would wrap the Twitterizer API in an interface, then mock the implementation while you test.


change your hosts file example ;

127.0.0.1 mytwitter.com

add web site on IIS

mytwitter.com and maps your project

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号