Get treatments


1 comment

  • Bilal Al-Shahwany

    Hi Amrita, since getTreatment call allow passing the customer id for all languages (except Mobile and Javascript), you can call it as needed for all the Splits needed regardless of what traffic type they use, giving that you pass the correct id corresponding to the traffic type, for example, if traffic type is user, we use customer id, if its account, we use account id, and so on.

    For mobile SDKs, we need to create the factory object passing the id, so getTreatment call will be restricted to that id. To use different id, you need to create another factory object.

    For Javascript in browser, you can get a client object from the current factory object with different id, then use the second client object to call getTreatment. Check this link for more info

    Hope that helps.



    Comment actions Permalink

Please sign in to leave a comment.