CSLibrary/DocumentGroup.cs
/// <summary>
/// Returns back all pending invite information as well as invites already signed for a group invite for the user that makes the call.  If the user making the call is the document owner, it will return pending invites for that user and ALL actions that have already been fulfilled.
/// </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 all pending invite information.</returns>
Returns back all pending invite information as well as invites already signed for a group invite for the user that makes the call.  If the user making the call is the document owner, it will return pending invites for that user and ALL actions that have already been fulfilled.
Returns back all pending invite information as well as invites already signed for a group invite for the user that makes the call . If the user making the call is the document owner it will return pending invites for that user and ALL actions that have already been fulfilled .
public static dynamic GetPendingInvites(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 + "/pendinginvites", 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 GetPendingInvites ( 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 ; }
Returns back all pending invite information as well as invites already signed for a group invite for the user that makes the call.
Returns back all pending invite information as well as invites already signed for a group invite for the user that makes the call .
Returns all pending invite information.
Returns all pending invite information .
AccessToken
string
None
GroupId
string
Document Group Id
Document Group Id
InviteId
string
Document Group Invite Id
Document Group Invite Id
ResultFormat
string
None