Beispiel #1
0
 /// <summary>
 ///     Updates the last view for the active user.
 ///     <para>Podio API Reference: https://developers.podio.com/doc/views/update-last-view-5988251 </para>
 /// </summary>
 /// <param name="appId"></param>
 /// <param name="request"></param>
 public async Task<dynamic> UpdateLastView(int appId, ViewCreateUpdateRequest request)
 {
     string url = string.Format("/view/app/{0}/last", appId);
     return await  _podio.Put<dynamic>(url, request);
 }
Beispiel #2
0
 /// <summary>
 ///     Updates the given view.
 ///     <para>Podio API Reference: https://developers.podio.com/doc/views/update-view-20069949 </para>
 /// </summary>
 /// <param name="viewId"></param>
 /// <param name="request"></param>
 public async Task<dynamic> UpdateView(int viewId, ViewCreateUpdateRequest request)
 {
     string url = string.Format("/view/{0}", viewId);
     return await  _podio.Put<dynamic>(url, request);
 }
Beispiel #3
0
 /// <summary>
 ///     Creates a new view on the given app.
 ///     <para>Podio API Reference: https://developers.podio.com/doc/views/create-view-27453 </para>
 /// </summary>
 /// <param name="appId"></param>
 /// <param name="viewCreateRequest"></param>
 /// <returns></returns>
 public async Task<int> CreateView(int appId, ViewCreateUpdateRequest request)
 {
     string url = string.Format("/view/app/{0}/", appId);
     dynamic response = await  _podio.Post<dynamic>(url, request);
     return (int) response["view_id"];
 }