{"action":"opened","issue":{"url":"https://api.github.com/repos/OfficeDev/ews-java-api/issues/551","repository_url":"https://api.github.com/repos/OfficeDev/ews-java-api","labels_url":"https://api.github.com/repos/OfficeDev/ews-java-api/issues/551/labels{/name}","comments_url":"https://api.github.com/repos/OfficeDev/ews-java-api/issues/551/comments","events_url":"https://api.github.com/repos/OfficeDev/ews-java-api/issues/551/events","html_url":"https://github.com/OfficeDev/ews-java-api/issues/551","id":171348504,"number":551,"title":"office 365 Exchange  error?","user":{"login":"805728578","id":9798724,"avatar_url":"https://avatars.githubusercontent.com/u/9798724?v=3","gravatar_id":"","url":"https://api.github.com/users/805728578","html_url":"https://github.com/805728578","followers_url":"https://api.github.com/users/805728578/followers","following_url":"https://api.github.com/users/805728578/following{/other_user}","gists_url":"https://api.github.com/users/805728578/gists{/gist_id}","starred_url":"https://api.github.com/users/805728578/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/805728578/subscriptions","organizations_url":"https://api.github.com/users/805728578/orgs","repos_url":"https://api.github.com/users/805728578/repos","events_url":"https://api.github.com/users/805728578/events{/privacy}","received_events_url":"https://api.github.com/users/805728578/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-16T08:05:24Z","updated_at":"2016-08-16T08:05:24Z","closed_at":null,"body":"microsoft.exchange.webservices.data.core.exception.service.remote.ServiceResponseException: When making a request as an account that does not have a mailbox, you must specify the mailbox primary SMTP address for any distinguished folder Ids.\r\n\tat microsoft.exchange.webservices.data.core.response.ServiceResponse.internalThrowIfNecessary(ServiceResponse.java:278)\r\n\tat microsoft.exchange.webservices.data.core.response.ServiceResponse.throwIfNecessary(ServiceResponse.java:267)\r\n\tat microsoft.exchange.webservices.data.core.request.MultiResponseServiceRequest.execute(MultiResponseServiceRequest.java:165)\r\n\tat microsoft.exchange.webservices.data.core.ExchangeService.findItems(ExchangeService.java:985)\r\n\tat microsoft.exchange.webservices.data.core.ExchangeService.findAppointments(ExchangeService.java:1264)\r\n\tat microsoft.exchange.webservices.data.core.ExchangeService.findAppointments(ExchangeService.java:1285)\r\n\r\n\r\n\r\ncode follow :\r\nurl = \"https://outlook.office365.com/EWS/Exchange.asmx\";\r\naccount = \"xxxxxx@waferxa.onmicrosoft.com\";\r\npassword = \"xxxxxxx\";\r\ncalendarId= \"greatwall@waferxa.onmicrosoft.com\";\r\n\r\nExchangeCredentials credentials = new WebCredentials(account, password);\r\nExchangeService service = new ExchangeService();\r\nservice.setCredentials(credentials);\r\nservice.setTraceEnabled(true);\r\nservice.setUrl(new URI(url));//手动\r\nservice.setPreAuthenticate(true);\r\nservice.setTimeout(10*60*1000);\r\nif(!StringUtils.isBlank(email)){\r\nservice.setImpersonatedUserId(new ImpersonatedUserId(ConnectingIdType.SmtpAddress, calendarId));\r\n}\r\n\r\nSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\nDate startDate = formatter.parse(\"2014-07-15 00:00:00\");\r\nDate endDate = formatter.parse(\"2016-07-15 00:00:00\");\r\nCalendarView view = new CalendarView(startDate, endDate);\r\nFindItemsResults<Appointment> appointments = service.findAppointments(WellKnownFolderName.Calendar, view);"}}
{"actor":{"display_login":"805728578"}}