BoxKite.Twitter.PlacesGeoExtensions.GetPlaceInfo C# (CSharp) Метод

GetPlaceInfo() публичный статический Метод

Returns all the information about a known place.
ref: https://dev.twitter.com/docs/api/1.1/get/geo/id/%3Aplace_id
public static GetPlaceInfo ( this session, string placeId ) : Task
session this
placeId string A place in the world.
Результат Task
        public static async Task<Place> GetPlaceInfo(this IUserSession session, string placeId)
        {
            var parameters = new SortedDictionary<string, string>();
            var url = TwitterApi.Resolve("/1.1/geo/id/{0}.json", placeId);
            return await session.GetAsync(url, parameters)
                          .ContinueWith(c => c.MapToSingle<Place>());
        }