TweetSharp의 SendTweetOptions 개체에서 위치 매개 변수를 사용하려고합니다.tweetsharp/SendTweetOptions - 위치 매개 변수 사용
다음 코드는 작동하지만 일단은 어떤 위치에 특정 데이터를 (유효 값을 포함 할 위도 & 경도) ... 나는 PlaceId에 대한 참조를 찾을 수 없습니다
SendTweetOptions options = new SendTweetOptions();
if (!string.IsNullOrEmpty(latitude) && !string.IsNullOrEmpty(longitude))
{
options.DisplayCoordinates = true;
options.Lat = double.Parse(latitude);
options.Long = double.Parse(longitude);
}
options.Status = message;
try
{
TwitterStatus s = twitterService.SendTweet(options);
}
catch (Exception e) { throw e; }
가 속성을 포함하지 않습니다 트윗 SendTweetOptions 객체가 필요합니까? 무엇을 포함해야 하는가? (긴 데이터 타입이다.)
UPDATE : tweetsharp에서
언급되지 않음. 트위터의 API에서 place_id 속성에 대한 참조를 찾았습니다.
정의 된 위치 : 세계의 장소.
이 ID는 GET geo/reverse_geocode에서 검색 할 수 있습니다.
https://dev.twitter.com/docs/api/1/get/geo/reverse_geocode
버전 1.1
https://dev.twitter.com/docs/api/1.1/get/geo/search