예제 #1
0
파일: Routes.cs 프로젝트: Domer79/CIAPI.CS
 /// <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);
 }
예제 #2
0
파일: Routes.cs 프로젝트: Domer79/CIAPI.CS
        // ***********************************
        // 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 );
        }