Example #1
0
        private TelekomJsonWebRequest<SmsResponse> CreateQueryReportRequest(QueryReportRequest request)
        {
            EnsureRequestValid(request);

            string uri = ServiceBaseUrl + "/outbound/{0}/requests/{1}/deliveryInfos";
            uri = string.Format(uri, Uri.EscapeDataString(request.senderAddress), Uri.EscapeDataString(this.reportId));

            return CreateAuthenticatedRequest<SmsResponse>(uri, HttpMethod.GET);
        }
Example #2
0
 /// <summary>
 /// Queries the given reportId from an SMS
 /// </summary>
 /// <param name="request">prepared request to use for the query</param>
 /// <param name="reportId">reportId of the message to be queried</param>
 public SmsResponse queryReport(QueryReportRequest request, String reportId)
 {
     this.reportId = reportId;
     return CreateQueryReportRequest(request).Execute();
 }