Last Updated: February 25, 2016
·
744
· tw

ZenDesk Api

Rapide exemple de MVC - Razor avec l'Api ZenDesk

Coté Code Behind

var api = new ZendeskApi("https://*****.zendesk.com/api/v2", "Email", "Password");
return View(api.Views.GetAllViews());

Coté Vue

@model ZendeskApi_v2.Models.Views.GroupViewResponse
<table>
@foreach (var item in Model.Views) {

<tr>
<td>@item.Active</td>
<td>@item.Url</td>
<td>@item.CreatedAt</td>
<td>@item.UpdatedAt</td>
<td>@item.Title</td>
</tr>
}
</table>