diff --git a/steam/client/builtins/apps.py b/steam/client/builtins/apps.py index 007894b..c8a83b8 100644 --- a/steam/client/builtins/apps.py +++ b/steam/client/builtins/apps.py @@ -244,3 +244,26 @@ class Apps(object): return EResult(resp.eresult), resp.purchase_result_details, details else: return EResult.Timeout, None, None + + def request_free_license(self, app_ids): + """ Request license for free app + + :param app_ids: list of app ids + :type app_ids: :class:`list` + :return: format ``(granted_appids, granted_packageids)`` + :rtype: :class:`tuple` + + .. code:: python + [730] [] + + """ + resp = self.send_job_and_wait(MsgProto(EMsg.ClientRequestFreeLicense), + {'appids': map(int, app_ids)}, + timeout=30, + ) + + if resp.eresult != EResult.OK: + return EResult(resp.eresult) + + else: + return resp.granted_appids, resp.granted_packageids \ No newline at end of file