pitchmuc / aepp

Adobe Experience Platform API for humans

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add label evaluation method to Policy module

jkpage00 opened this issue · comments

Support policy evaluation of usage labels for an intended marketing action so that users of the package can handle policy enforcement in their Python code.

Add methods to the Policy class in policy.py to make requests to the /marketingActions/{{namespace}}/{{marketing action name}}/constraints endpoint of the Policy Service API (API reference)

There are 2 policy evaluation GET requests within the Policy Service API that have not yet been implemented in aepp:

  • GET Evaluate a core marketing action based on data usage labels
  • GET Evaluate a custom marketing action based on data usage labels

The two GET requests can be consolidated into one method by taking namespace ("core" or "custom")

The POST requests for evaluating datasets against a marketing action are covered in issue #50

Hello @jkpage00 ,

Sorry for the delay on this, but have you considered the evaluateMarketingActionUsageLabel and evaluateMarketingActionDataset methods available ?