Fetch recent approval List
Parameters
ApprovalAPIInfo | A struct that has the information on Creator app and approval type. |
---|---|
completionHandler | Approval data will be returned in completion Handler. |
Example
let approvalAPIInfo = ApprovalAPIInfo.init(appOwner: "<appOwner>", appLinkName: "<appLinkName>", listType: ApprovalAPIInfo.ApprovalListType.pending) ZCApprovalAPIService.fetchRecentApprovalList(for: approvalAPIInfo) { (result) in switch result { case .success(let approval): print(approval.tasks) case .failure(let error): print(error) } }