在我的项目中,我通过Madrill发送了不同主题的几种类型的电子邮件。为了进行报告,我必须从madrill获取一些信息。当我去那里的API部分时,我发现了我的愿望。我从那里学到的东西,我必须调用一个URL:https://mandrillapp.com/api/1.0//messages/search-time-series.json 这个过程就像下面这样:
axios.get('/api/people?role_ids=' + allowedRoleIds).then(response => {
this.practitioners = response.data;
// refresh practitionerId whenever fetch new people
const selectedPractitionerId = this.practitionerId;
this.practitionerId = 0;
// if selected practitioner exists in new people
practitioners.forEach(p => {
if (p.id == selectedPractitionerId) {
this.practitionerId = p.id;
}
}) // you can omit this search if you force the user to select new practitioner whenever they change treatment
});
我需要从C#类中调用它。在这个问题上,任何人都可以帮我吗。