/// <summary> /// Grant Access to reseller /// </summary> /// <param name="api"></param> /// <param name="resourceType"></param> public void GrantAccessToManager(API_Proxy_BackendConsole api, String resourceType) { NameValueCollection param = new NameValueCollection(); param.Add("resourceType", resourceType); api.Action <string>(ApiPath, AvailableApiAction.GRANT_ACCESS_TO_MANAGER, Id, "GET", param); }
/// <summary> /// Sign this contract with an agreement. /// </summary> /// <param name="agreementName">Name of the agreement to sign</param> /// <param name="version">Versionn of the agreemennt to sign. Format example: 1.0.0</param> public void Sign(API_Proxy_BackendConsole api, String agreementName, String version) { NameValueCollection param = new NameValueCollection(); param.Add("agreementName", agreementName); param.Add("version", version); api.Action <string>(ApiPath, AvailableApiAction.SIGN, Id, "GET", param); }
public void SignAgreement(API_Proxy_BackendConsole api, String agreementName, String version) { if (Id == 0) { throw new Exception("You must create the client before signing agreements."); } NameValueCollection param = new NameValueCollection(); param.Add("agreementName", agreementName); param.Add("version", version); api.Action <string>(ApiPath, AvailableApiAction.SIGN_AGREEMENT, Id, "GET", param); }