|
|
@ -62,6 +62,7 @@ class Apps(object): |
|
|
|
the account has a license. |
|
|
|
|
|
|
|
.. code:: python |
|
|
|
|
|
|
|
result = client.get_product_info(apps=[123]) |
|
|
|
|
|
|
|
if result['apps'][123]['_missing_token']: |
|
|
@ -264,23 +265,19 @@ class Apps(object): |
|
|
|
|
|
|
|
def request_free_license(self, app_ids): |
|
|
|
""" Request license for free app(s) |
|
|
|
|
|
|
|
|
|
|
|
:param app_ids: list of app ids |
|
|
|
:type app_ids: :class:`list` |
|
|
|
:return: format ``(eresult, result_details, receipt_info)`` |
|
|
|
:return: format (:class:`.EResult`, result_details, receipt_info) |
|
|
|
:rtype: :class:`tuple` |
|
|
|
|
|
|
|
.. code:: python |
|
|
|
[730] [] |
|
|
|
|
|
|
|
""" |
|
|
|
resp = self.send_job_and_wait(MsgProto(EMsg.ClientRequestFreeLicense), |
|
|
|
{'appids': map(int, app_ids)}, |
|
|
|
timeout=10, |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
if resp: |
|
|
|
return EResult(resp.eresult), resp.granted_appids, resp.granted_packageids |
|
|
|
|
|
|
|
|
|
|
|
else: |
|
|
|
return EResult.Timeout, None, None |
|
|
|
return EResult.Timeout, None, None |
|
|
|