'required list', ); } protected function defineReturnType() { return 'dict'; } protected function execute(ConduitAPIRequest $request) { $results = array(); $revision_ids = $request->getValue('revision_ids'); if (!$revision_ids) { return $results; } $diffs = id(new DifferentialDiffQuery()) ->setViewer($request->getUser()) ->withRevisionIDs($revision_ids) ->execute(); foreach ($diffs as $diff) { $results[] = array( 'revision_id' => $diff->getRevisionID(), 'diff_id' => $diff->getID(), ); } return $results; } }