/** *AUTO_GENERATED */ public CancelPermissionsResponse CancelPermissions(CancelPermissionsRequest cancelPermissionsRequest, ICredential credential) { IAPICallPreHandler apiCallPreHandler = null; apiCallPreHandler = new PlatformAPICallPreHandler(cancelPermissionsRequest.ToNVPString(string.Empty), ServiceName, "CancelPermissions", credential); ((PlatformAPICallPreHandler) apiCallPreHandler).SDKName = SDKName; ((PlatformAPICallPreHandler) apiCallPreHandler).SDKVersion = SDKVersion; string response = Call(apiCallPreHandler); NVPUtil util = new NVPUtil(); return CancelPermissionsResponse.CreateInstance(util.ParseNVPString(response), string.Empty, -1); }
/// <summary> /// /// </summary> ///<param name="cancelPermissionsRequest"></param> ///<param name="apiUserName">API Username that you want to authenticate this call against. This username and the corresponding 3-token/certificate credentials must be available in Web.Config/App.Config</param> public CancelPermissionsResponse CancelPermissions(CancelPermissionsRequest cancelPermissionsRequest, string apiUserName) { IAPICallPreHandler apiCallPreHandler = new PlatformAPICallPreHandler(this.config, cancelPermissionsRequest.ToNVPString(string.Empty), ServiceName, "CancelPermissions", apiUserName, getAccessToken(), getAccessTokenSecret()); ((PlatformAPICallPreHandler) apiCallPreHandler).SDKName = SDKName; ((PlatformAPICallPreHandler) apiCallPreHandler).SDKVersion = SDKVersion; ((PlatformAPICallPreHandler) apiCallPreHandler).PortName = "Permissions"; NVPUtil util = new NVPUtil(); return CancelPermissionsResponse.CreateInstance(util.ParseNVPString(Call(apiCallPreHandler)), string.Empty, -1); }
/** *AUTO_GENERATED */ public CancelPermissionsResponse CancelPermissions(CancelPermissionsRequest cancelPermissionsRequest, string apiUserName) { string response = Call("CancelPermissions", cancelPermissionsRequest.ToNVPString(""), apiUserName); NVPUtil util = new NVPUtil(); return CancelPermissionsResponse.CreateInstance(util.ParseNVPString(response), "", -1); }