Created
October 19, 2016 03:37
-
-
Save nmcspadden/4f1eeed20efeba9075c997a74818c52b to your computer and use it in GitHub Desktop.
adobe_tools - Does user have product? (Public)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def does_user_have_product(target_user, product): | |
"""Return True/False if a user has the specified product.""" | |
(config_data, jwt_token, access_token) = generate_config() | |
membership = _products_per_user(config_data, access_token, target_user) | |
return product in membership |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment