2011-01-24 3 views
0

안녕하세요 내 mvc.net 응용 프로그램에서 Tweetsharp를 사용하여 목록을 얻고 다른 사람들과 이미지를 공유하고 싶습니다. 하지만 적절한 설명서와 샘플이 없습니다. 컨트롤러 액션에 추가해야 할 것은 무엇이고 뷰 페이지에는 무엇이 필요합니까?tweetsharp mvc.net에서 구현

동일한 링크를 제공하십시오.

감사

munish

답변

-1

나는 Tweetsharp에 대해 알고 있지만 linq2twitter에서 살펴하지 않습니다. LINQ를 사용하여 Twitter API에 쉽게 액세스 할 수 있습니다.

0
public void MyMethod() { 
    TwitterService service = new TwitterService(key, secret, "Token", "Secret"); 

    ListFriendsOptions options = new ListFriendsOptions(); 
    options.Cursor = 12345; 

    // should the response have user entities 
    options.IncludeUserEntities = false; 

    // The screen name of the user for whom to return results for. 
    options.ScreenName = ""; 

    options.SkipStatus = false; 

    // The ID of the user for whom to return results for. 
    options.UserId = 12345; 

    // this will return a list of friends for the specified user. 
    TwitterCursorList<TwitterUser> listOfFriends = service.ListFriends(options); 
} 

위의 코드는 TweetSharp라는 타사 라이브러리를 사용합니다. 이미지에 관해서는

은 무엇을에 관해서는 확실하지 메신저하지만 당신은 정보를 트위터 REST API를 버전 1.1에서 https://github.com/danielcrenna/tweetsharp

https://dev.twitter.com/docs/api/1.1/get/friends/list

https://dev.twitter.com/docs/api/1.1

TweetSharp 볼 수 있습니다