Skip to content

Instantly share code, notes, and snippets.

@nmcspadden
Created October 19, 2016 03:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nmcspadden/4f1eeed20efeba9075c997a74818c52b to your computer and use it in GitHub Desktop.
Save nmcspadden/4f1eeed20efeba9075c997a74818c52b to your computer and use it in GitHub Desktop.
adobe_tools - Does user have product? (Public)
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