/** * AUTO_GENERATED */ public RequestPermissionsResponse RequestPermissions(RequestPermissionsRequest requestPermissionsRequest, string apiUserName) { string response = Call("RequestPermissions", requestPermissionsRequest.ToNVPString(""), apiUserName); NVPUtil util = new NVPUtil(); return(RequestPermissionsResponse.CreateInstance(util.ParseNVPString(response), "", -1)); }
/// <summary> /// /// </summary> ///<param name="requestPermissionsRequest"></param> ///<param name="credential">An explicit ICredential object that you want to authenticate this call against</param> public RequestPermissionsResponse RequestPermissions(RequestPermissionsRequest requestPermissionsRequest, ICredential credential) { IAPICallPreHandler apiCallPreHandler = new PlatformAPICallPreHandler(this.config, requestPermissionsRequest.ToNVPString(string.Empty), ServiceName, "RequestPermissions", credential); ((PlatformAPICallPreHandler)apiCallPreHandler).SDKName = SDKName; ((PlatformAPICallPreHandler)apiCallPreHandler).SDKVersion = SDKVersion; ((PlatformAPICallPreHandler)apiCallPreHandler).PortName = "Permissions"; NVPUtil util = new NVPUtil(); return(RequestPermissionsResponse.CreateInstance(util.ParseNVPString(Call(apiCallPreHandler)), string.Empty, -1)); }