Ejemplo n.º 1
0
        /// <summary>
        ///     Deletes the task with the given id.
        ///     <para>API Reference: https://developers.podio.com/doc/tasks/delete-task-77179 </para>
        /// </summary>
        /// <param name="taskId"></param>
        /// <param name="hook">True if hooks should be executed for the change, false otherwise. Default value: true</param>
        /// <param name="silent">
        ///     If set to true, the object will not be bumped up in the stream and notifications will not be
        ///     generated. Default value: false
        /// </param>
        public async System.Threading.Tasks.Task DeleteTask(int taskId, bool hook = true, bool silent = false)
        {
            string url = string.Format("/task/{0}", taskId);

            url = Utility.PrepareUrlWithOptions(url, new CreateUpdateOptions(silent, hook));
            await _podio.Delete <dynamic>(url);
        }
Ejemplo n.º 2
0
        /// <summary>
        ///     Ends all the users membership on the space, can also be called for members in state invited.
        ///     <para>Podio API Reference: https://developers.podio.com/doc/space-members/end-space-memberships-22399 </para>
        /// </summary>
        /// <param name="spaceId"></param>
        /// <param name="userIds"></param>
        public async Task <dynamic> EndSpaceMemberships(int spaceId, int[] userIds)
        {
            string userIdsAsCSV = Utility.ArrayToCSV(userIds);
            string url          = string.Format("/space/{0}/member/{1}", spaceId, userIdsAsCSV);

            return(await _podio.Delete <dynamic>(url));
        }
Ejemplo n.º 3
0
        /// <summary>
        ///     Deletes the contact(s) with the given id(s). It is currently only allowed to delete contacts of type "space".
        ///     <para>Podio API Reference: https://developers.podio.com/doc/contacts/delete-contact-s-60560 </para>
        /// </summary>
        /// <param name="profileIds"></param>
        public async Task <dynamic> DeleteContacts(int[] profileIds)
        {
            string profileIdCSV = Utility.ArrayToCSV(profileIds);
            string url          = string.Format("/contact/{0}", profileIdCSV);

            return(await _podio.Delete <dynamic>(url));
        }
Ejemplo n.º 4
0
 /// <summary>
 ///     Deletes the app with the given id. This will delete all items, widgets, filters and shares on the app. This
 ///     operation is not reversible.
 ///     <para>Podio API Reference: https://developers.podio.com/doc/applications/delete-app-43693 </para>
 /// </summary>
 /// <param name="appId"></param>
 public async System.Threading.Tasks.Task DeleteApp(int appId)
 {
     string url = string.Format("/app/{0}", appId);
     await _podio.Delete <dynamic>(url);
 }
Ejemplo n.º 5
0
        /// <summary>
        ///     Removes a single tag from an object.
        ///     <para>Podio API Reference: https://developers.podio.com/doc/tags/remove-tag-22465 </para>
        /// </summary>
        /// <param name="refType"></param>
        /// <param name="refId"></param>
        /// <param name="text">The tag to search for</param>
        public async Task <dynamic> RemoveTag(string refType, int refId, string text)
        {
            string url = string.Format("/tag/{0}/{1}?text={2}", refType, refId, text);

            return(await _podio.Delete <dynamic>(url));
        }
Ejemplo n.º 6
0
        /// <summary>
        ///     This is used to delete a status message
        ///     <para>Podio API Reference: https://developers.podio.com/doc/status/delete-a-status-message-22339 </para>
        /// </summary>
        /// <param name="statusId"></param>
        public async Task <dynamic> DeleteStatusMessage(int statusId)
        {
            string url = string.Format("/status/{0}", statusId);

            return(await _podio.Delete <dynamic>(url));
        }
Ejemplo n.º 7
0
        /// <summary>
        ///     Deletes the given view.
        ///     <para>Podio API Reference: https://developers.podio.com/doc/views/delete-view-27454 </para>
        /// </summary>
        /// <param name="viewId"></param>
        public async Task <dynamic> DeleteView(int viewId)
        {
            string url = string.Format("/view/{0}", viewId);

            return(await _podio.Delete <dynamic>(url));
        }
Ejemplo n.º 8
0
        /// <summary>
        ///     Unshares the given app from the app market
        /// </summary>
        /// <para>Podio API Reference: https://developers.podio.com/doc/app-market/unshare-app-37917  </para>
        /// <param name="shareId"></param>
        public async Task <dynamic> UnshareApp(int shareId)
        {
            string url = string.Format("/app_store/{0}", shareId);

            return(await _podio.Delete <dynamic>(url));
        }
Ejemplo n.º 9
0
        /// <summary>
        ///     Deletes a comment made by a user. This can be used to retract a comment that was made and which the user regrets.
        ///     <para>Podio API Reference: https://developers.podio.com/doc/comments/delete-a-comment-22347  </para>
        /// </summary>
        /// <param name="commentId"></param>
        public async Task <dynamic> DeleteComment(int commentId)
        {
            string url = string.Format("/comment/{0}", commentId);

            return(await _podio.Delete <dynamic>(url));
        }
Ejemplo n.º 10
0
        /// <summary>
        ///     Deletes the reminder, if any, on the given object.
        ///     <para>Podio API Reference: https://developers.podio.com/doc/reminders/delete-reminder-3315117 </para>
        /// </summary>
        /// <param name="refType"></param>
        /// <param name="refId"></param>
        /// <param name="reminderId"></param>
        public async Task <dynamic> DeleteReminder(string refType, int refId, int reminderId)
        {
            string url = string.Format("/reminder/{0}/{1}?reminder_id={2}", refType, refId, reminderId);

            return(await _podio.Delete <dynamic>(url));
        }
Ejemplo n.º 11
0
        /// <summary>
        ///     Removes a previous rating of the given type by the user of the specified object.
        ///     <para>Podio API Reference: https://developers.podio.com/doc/ratings/remove-rating-22342 </para>
        /// </summary>
        /// <param name="refType"></param>
        /// <param name="refId"></param>
        /// <param name="ratingType"></param>
        public async Task <dynamic> RemoveRating(string refType, int refId, string ratingType)
        {
            string url = string.Format("/rating/{0}/{1}/{2}", refType, refId, ratingType);

            return(await _podio.Delete <dynamic>(url));
        }
Ejemplo n.º 12
0
        /// <summary>
        ///     Removes the star on the notification.
        ///     <para>Podio API Reference: https://developers.podio.com/doc/notifications/un-star-notification-295911 </para>
        /// </summary>
        /// <param name="notificationId"></param>
        public async Task <dynamic> UnStarNotification(int notificationId)
        {
            string url = string.Format("/notification/{0}/star", notificationId);

            return(await _podio.Delete <dynamic>(url));
        }
Ejemplo n.º 13
0
        /// <summary>
        ///     Delete the flow with the given id.
        ///     <para>Podio API Reference: https://developers.podio.com/doc/flows/delete-flow-32929229 </para>
        /// </summary>
        /// <param name="flowId"></param>
        public async Task <dynamic> DeleteFlow(int flowId)
        {
            string url = string.Format("/flow/{0}", flowId);

            return(await _podio.Delete <dynamic>(url));
        }
Ejemplo n.º 14
0
        /// <summary>
        ///     Deletes the hook with the given id.
        ///     <para>Podio API Reference: https://developers.podio.com/doc/hooks/delete-hook-215291 </para>
        /// </summary>
        /// <param name="hookId"></param>
        public async Task <dynamic> DeleteHook(int hookId)
        {
            string url = string.Format("/hook/{0}", hookId);

            return(await _podio.Delete <dynamic>(url));
        }
Ejemplo n.º 15
0
        /// <summary>
        ///     Mark the conversation as unread.
        ///     <para>Podio API Reference: https://developers.podio.com/doc/conversations/mark-conversation-as-unread-35441542 </para>
        /// </summary>
        /// <param name="converstionId"></param>
        public async Task <dynamic> MarkConversationAsUnread(int converstionId)
        {
            string url = string.Format("/conversation/{0}/read", converstionId);

            return(await _podio.Delete <dynamic>(url));
        }
Ejemplo n.º 16
0
        /// <summary>
        ///     Deletes the recurrence.
        ///     <para>Podio API Reference: https://developers.podio.com/doc/recurrence/delete-recurrence-3349970 </para>
        /// </summary>
        /// <param name="refType"></param>
        /// <param name="refId"></param>
        public async Task <dynamic> DeleteRecurrence(string refType, int refId)
        {
            string url = string.Format("/recurrence/{0}/{1}", refType, refId);

            return(await _podio.Delete <dynamic>(url));
        }
Ejemplo n.º 17
0
        /// <summary>
        ///     Deletes the property for the active user with the given name. The property is specific to the auth client used.
        ///     <para>Podio API Reference: https://developers.podio.com/doc/users/delete-user-property-29800 </para>
        /// </summary>
        /// <param name="name"></param>
        public async Task <dynamic> DeleteUserProperty(string name)
        {
            string url = string.Format("/user/property/{0}", name);

            return(await _podio.Delete <dynamic>(url));
        }
Ejemplo n.º 18
0
        /// <summary>
        ///     Deletes the form with the given id.
        ///     <para>Podio API Reference: https://developers.podio.com/doc/forms/delete-from-53810 </para>
        /// </summary>
        /// <param name="formId"></param>
        public async Task <dynamic> DeleteFrom(int formId)
        {
            string url = string.Format("/form/{0}", formId);

            return(await _podio.Delete <dynamic>(url));
        }
Ejemplo n.º 19
0
 /// <summary>
 ///     Deletes the file with the given id
 ///     <para>Podio API Reference: https://developers.podio.com/doc/files/delete-file-22453 </para>
 /// </summary>
 /// <param name="fileId"></param>
 public async System.Threading.Tasks.Task DeleteFile(int fileId)
 {
     string url = string.Format("/file/{0}", fileId);
     await _podio.Delete <dynamic>(url);
 }
Ejemplo n.º 20
0
        /// <summary>
        ///     Unsubscribe from getting notifications on actions on the given object.
        ///     <para>Podio API Reference: https://developers.podio.com/doc/subscriptions/unsubscribe-by-reference-22410 </para>
        /// </summary>
        /// <param name="refType"></param>
        /// <param name="refId"></param>
        public async Task <dynamic> UnsubscribeByReference(string refType, int refId)
        {
            string url = string.Format("/subscription/{0}/{1}", refType, refId);

            return(await _podio.Delete <dynamic>(url));
        }
Ejemplo n.º 21
0
        /// <summary>
        ///     Deletes the integration from the given app.
        ///     <para>Podio API Reference: https://developers.podio.com/doc/integrations/delete-integration-86876 </para>
        /// </summary>
        /// <param name="appId"></param>
        public async Task <dynamic> DeleteIntegration(int appId)
        {
            string url = string.Format("/integration/{0}", appId);

            return(await _podio.Delete <dynamic>(url));
        }
Ejemplo n.º 22
0
        /// <summary>
        ///     Removes the grant from the given user on the given object.
        ///     <para>Podio API Reference: https://developers.podio.com/doc/grants/remove-grant-16496711 </para>
        /// </summary>
        /// <param name="refType"></param>
        /// <param name="refId"></param>
        /// <param name="userId"></param>
        public async Task <dynamic> RemoveGrant(string refType, dynamic refId, int userId)
        {
            string url = string.Format("/grant/{0}/{1}/{2}", refType, refId, userId);

            return(await _podio.Delete <dynamic>(url));
        }
Ejemplo n.º 23
0
        /// <summary>
        ///     Deletes the given widget.
        ///     <para>Podio API Reference: https://developers.podio.com/doc/widgets/delete-widget-22492 </para>
        /// </summary>
        /// <param name="widgetId"></param>
        public async Task <dynamic> DeleteWidget(int widgetId)
        {
            string url = string.Format("/widget/{0}", widgetId);

            return(await _podio.Delete <dynamic>(url));
        }
Ejemplo n.º 24
0
        /// <summary>
        ///     Deletes the organizations app store profile.
        ///     <para>
        ///         Podio API Reference:
        ///         https://developers.podio.com/doc/organizations/delete-organization-app-store-profile-87808
        ///     </para>
        /// </summary>
        /// <param name="organizationId"></param>
        public async Task <dynamic> DeleteOrganizationAppStoreProfile(int organizationId)
        {
            string url = string.Format("/org/{0}/appstore", organizationId);

            return(await _podio.Delete <dynamic>(url));
        }