/// <summary> /// Get a list of current news headlines. /// </summary> /// <param name="request">Object specifying the various request parameters.</param> /// <param name="callback"></param> /// <param name="state"></param> public virtual void BeginListNewsHeadlines(ListNewsHeadlinesRequestDTO request, ReliableAsyncCallback callback, object state) { string uriTemplate = "/headlines"; _client.BeginRequest(RequestMethod.POST, "news", uriTemplate , new Dictionary<string, object> { { "request", request} },ContentType.JSON,ContentType.JSON, TimeSpan.FromMilliseconds(0), 30000,0 ,callback, state); }
// *********************************** // ListNewsHeadlines // *********************************** /// <summary> /// Get a list of current news headlines. /// </summary> /// <param name="request">Object specifying the various request parameters.</param> public virtual ListNewsHeadlinesResponseDTO ListNewsHeadlines(ListNewsHeadlinesRequestDTO request) { string uriTemplate = "/headlines"; return _client.Request<ListNewsHeadlinesResponseDTO>(RequestMethod.POST,"news", uriTemplate , new Dictionary<string, object> { { "request", request} },ContentType.JSON,ContentType.JSON, TimeSpan.FromMilliseconds(0),30000,0 ); }