CSLibrary/DocumentGroup.cs
/// <summary>
/// Get Invite action information for a group invite, including the status of each step and action.  This can only can be called by the owner of the document group.
/// </summary>
/// <param name="AccessToken"></param>
/// <param name="GroupId">Document Group Id</param>
/// <param name="InviteId">Document Group Invite Id</param>
/// <param name="ResultFormat">JSON, XML</param>
/// <returns>Returns the Group Invite</returns>
Get Invite action information for a group invite, including the status of each step and action.  This can only can be called by the owner of the document group.
Get Invite action information for a group invite including the status of each step and action . This can only can be called by the owner of the document group .
public static dynamic GetInvite(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, Method.GET)
                .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 GetInvite ( 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 . GET ) . 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 ; }
Get Invite action information for a group invite, including the status of each step and action.
Get Invite action information for a group invite including the status of each step and action .
Returns the Group Invite
Returns the Group Invite
AccessToken
string
None
GroupId
string
Document Group Id
Document Group Id
InviteId
string
Document Group Invite Id
Document Group Invite Id
ResultFormat
string
None