CSLibrary/DocumentGroup.cs
/// <summary>
/// Used to wither replace inviters for a particular step or update the invite attributes for a user at a particular step.
/// </summary>
/// <param name="AccessToken"></param>
/// <param name="GroupId">Documet Group Id</param>
/// <param name="InviteId">Document Group Invite Id</param>
/// <param name="StepId">Document Group Invite Step Id</param>
/// <param name="DataObj">Data Object conatining new invite step parameters.</param>
/// <param name="ResultFormat">JSON, XML</param>
/// <returns>Returns a Success Message</returns>
Used to wither replace inviters for a particular step or update the invite attributes for a user at a particular step.
Used to wither replace inviters for a particular step or update the invite attributes for a user at a particular step .
public static dynamic ReplaceInviters(string AccessToken, string GroupId, string InviteId, string StepId, dynamic DataObj, string ResultFormat = "JSON")
        {
            var client = new RestClient();
            client.BaseUrl = new Uri(Config.ApiHost);
            var request = new RestRequest("/documentgroup/" + GroupId + "/groupinvite/" + InviteId + "/step/" + StepId, Method.POST)
                .AddHeader("Accept", "application/json")
                .AddHeader("Authorization", "Bearer " + AccessToken);
            request.AddBody(DataObj);
            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 ReplaceInviters ( string AccessToken , string GroupId , string InviteId , string StepId , dynamic DataObj , string ResultFormat = " " ) { var client = new RestClient ( ) ; client . BaseUrl = new Uri ( Config . ApiHost ) ; var request = new RestRequest ( " " + GroupId + " " + InviteId + " " + StepId , Method . POST ) . AddHeader ( " " , " " ) . AddHeader ( " " , " " + AccessToken ) ; request . AddBody ( DataObj ) ; 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 ; }
Used to wither replace inviters for a particular step or update the invite attributes for a user at a particular step.
Used to wither replace inviters for a particular step or update the invite attributes for a user at a particular step .
Returns a Success Message
Returns a Success Message
AccessToken
string
None
GroupId
string
Documet Group Id
Documet Group Id
InviteId
string
Document Group Invite Id
Document Group Invite Id
StepId
string
Document Group Invite Step Id
Document Group Invite Step Id
DataObj
dynamic
Data Object conatining new invite step parameters.
Data Object conatining new invite step parameters .
ResultFormat
string
None