Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr SubscriptLoad AttributeLoad NameLoad attr Slice Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Dict Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore Dict Str AttributeLoad NameLoad attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body If AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword Dict NameLoad AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr name NameStore body Raise Call AttributeLoad NameLoad attr keyword NameLoad If CompareNotEq AttributeLoad NameLoad attr Num body Raise Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str If CompareNotEq AttributeLoad NameLoad attr Num body Raise Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assert BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore NameLoad If NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body If UnaryOpNot NameLoad body Raise If BoolOpAnd UnaryOpNot NameLoad NameLoad body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Return NameLoad decorator_list decorator_list
N/A N/A json N/A requests N/A receipt N/A exceptions environment Environment N/A RECEIPT_PRODUCTION_VALIDATION_URL https://buy.itunes.apple.com/verifyReceipt N/A RECEIPT_SANDBOX_VALIDATION_URL https://sandbox.itunes.apple.com/verifyReceipt Request N/A object N/A N/A Validation request with raw receipt.

    Use `verify` method to try verification and get Receipt or exception.

    :param str receipt_data: An iTunes receipt data as Base64 encoded string.
    :param proxy_url: A proxy url to access the itunes validation url
     __init__ N/A N/A self receipt_data password proxy_url N/A None None N/A N/A N/A self receipt_data receipt_data N/A N/A self password password N/A N/A self proxy_url proxy_url N/A __repr__ N/A N/A self N/A N/A N/A N/A N/A <Request({0}...)> format N/A N/A self receipt_data N/A 20 N/A request_content N/A N/A self N/A N/A N/A Build request body for iTunes. N/A N/A N/A self password None N/A N/A request_content N/A receipt-data password N/A self receipt_data N/A self password N/A N/A request_content N/A receipt-data N/A self receipt_data N/A request_content N/A property verify_from N/A N/A self url verify_ssl N/A True N/A N/A Try verification from given url.

        :param str url: iTunes verification API URL.
        :param bool verify_ssl: SSL verification.

        :return: :class:`itunesiap.receipt.Receipt` object if succeed.
        :raises: Otherwise raise a request exception.
         N/A post_body N/A N/A json dumps N/A self request_content N/A N/A N/A N/A self proxy_url N/A N/A protocol N/A N/A N/A N/A self proxy_url split :// N/A 0 N/A http_response N/A N/A requests post url post_body verify verify_ssl proxies N/A protocol N/A self proxy_url N/A N/A http_response N/A N/A requests post url post_body verify verify_ssl N/A N/A N/A N/A N/A requests exceptions RequestException N/A e N/A N/A N/A N/A exceptions ItunesServerNotReachable exc e N/A N/A N/A http_response status_code 200 N/A N/A N/A N/A exceptions ItunesServerNotAvailable N/A http_response status_code N/A http_response content N/A response N/A N/A receipt Response N/A N/A json loads N/A N/A N/A http_response content decode utf-8 N/A N/A N/A response status 0 N/A N/A N/A N/A exceptions InvalidReceipt N/A response status response response N/A response N/A verify N/A N/A self N/A options N/A N/A Try verification with current environment.
        If verify_ssl is true, Apple's SSL certificiate will be
        verified. The verify_ssl is set to false by default for
        backwards compatability.

        :param bool use_production: Override environment value if given
        :param bool use_sandbox: Override environment value if given
        :param bool verify_ssl: Override environment value if given

        :return: :class:`itunesiap.receipt.Receipt` object if succeed.
        :raises: Otherwise raise a request exception.
         N/A env N/A N/A Environment current N/A use_production N/A N/A options get use_production N/A env use_production N/A use_sandbox N/A N/A options get use_sandbox N/A env use_sandbox N/A verify_ssl N/A N/A options get verify_ssl N/A env verify_ssl N/A N/A N/A env use_production N/A env use_sandbox N/A response None N/A use_production N/A N/A N/A N/A response N/A N/A self verify_from RECEIPT_PRODUCTION_VALIDATION_URL verify_ssl N/A N/A N/A N/A exceptions InvalidReceipt N/A N/A N/A use_sandbox N/A N/A N/A N/A N/A response use_sandbox N/A N/A N/A N/A response N/A N/A self verify_from RECEIPT_SANDBOX_VALIDATION_URL verify_ssl N/A N/A N/A N/A exceptions InvalidReceipt N/A N/A N/A response N/A N/A