CSLibrary/DocumentGroup.cs
/// <summary>
/// Cancels a group invite.  All documents will be unshared with invitees.  Any signatures that occurred before canceling will remain on the documents.
/// </summary>
/// <param name="AccessToken"></param>
/// <param name="GroupId">Document Group Invite Id</param>
/// <param name="InviteId">Document Group Invite Id</param>
/// <param name="ResultFormat">JSON, XML</param>
/// <returns>Returns a Success Message</returns>
Cancels a group invite.  All documents will be unshared with invitees.  Any signatures that occurred before canceling will remain on the documents.
Cancels a group invite . All documents will be unshared with invitees . Any signatures that occurred before canceling will remain on the documents .
public static dynamic CancelInvite(string AccessToken, string GroupId, string InviteId, string ResultFormat = "JSON")
        {
            var client = new RestClient();
            client.BaseUrl = new Uri(Config.ApiHost);
            var request = new RestRequest("/documentgroup/" + GroupId + "/groupinvite/" + InviteId + "/cancelinvite", Method.POST)
                .AddHeader("Accept", "application/json")
                .AddHeader("Authorization", "Bearer " + AccessToken);
            var response = client.Execute(request);
            dynamic results = "";
            if (response.StatusCode == HttpStatusCode.OK)
            {
                results = response.Content;
            }
            else
            {
                Console.WriteLine(response.Content.ToString());
                results = response.Content.ToString();
            }
            if (ResultFormat == "JSON")
            {
                results = JsonConvert.DeserializeObject(results);
            }
            else if (ResultFormat == "XML")
            {
                results = (XmlDocument)JsonConvert.DeserializeXmlNode(results, "root");
            }
            return results;
        }
public static dynamic CancelInvite ( string AccessToken , string GroupId , string InviteId , string ResultFormat = " " ) { var client = new RestClient ( ) ; client . BaseUrl = new Uri ( Config . ApiHost ) ; var request = new RestRequest ( " " + GroupId + " " + InviteId + " " , Method . POST ) . AddHeader ( " " , " " ) . AddHeader ( " " , " " + AccessToken ) ; var response = client . Execute ( request ) ; dynamic results = " " ; if ( response . StatusCode == HttpStatusCode . OK ) { results = response . Content ; } else { Console . WriteLine ( response . Content . ToString ( ) ) ; results = response . Content . ToString ( ) ; } if ( ResultFormat == " " ) { results = JsonConvert . DeserializeObject ( results ) ; } else if ( ResultFormat == " " ) { results = ( XmlDocument ) JsonConvert . DeserializeXmlNode ( results , " " ) ; } return results ; }
Cancels a group invite.
Cancels a group invite .
Returns a Success Message
Returns a Success Message
AccessToken
string
None
GroupId
string
Document Group Invite Id
Document Group Invite Id
InviteId
string
Document Group Invite Id
Document Group Invite Id
ResultFormat
string
None