Ejemplo n.º 1
0
		/// <summary>
		/// Updates the given view.
		/// <para>Podio API Reference: https://developers.podio.com/doc/views/update-view-20069949 </para>
		/// </summary>
		/// <param name="viewId">The view identifier.</param>
		/// <param name="request">The request.</param>
		/// <returns>Task.</returns>
		public async Task UpdateView(int viewId, ViewCreateUpdateRequest request)
        {
            string url = string.Format("/view/{0}", viewId);
            await _podio.PutAsync<dynamic>(url, request);
        }
Ejemplo n.º 2
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">The application identifier.</param>
		/// <param name="request">The request.</param>
		/// <returns>System.Int32.</returns>
		public async Task<int> CreateView(int appId, ViewCreateUpdateRequest request)
        {
            string url = string.Format("/view/app/{0}/", appId);
            dynamic response = await _podio.PostAsync<dynamic>(url, request);
            return (int)response["view_id"];
        }
Ejemplo n.º 3
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">The application identifier.</param>
		/// <param name="request">The request.</param>
		/// <returns>Task.</returns>
		public async Task UpdateLastView(int appId, ViewCreateUpdateRequest request)
        {
            string url = string.Format("/view/app/{0}/last", appId);
            await _podio.PutAsync<dynamic>(url, request);
        }