Drupal: Evaluating Segments on Your Own
Since every deployment of Drupal is different, the personalisation features provided are openly available as a library.
In order to get a list of segments, run the below code. This acts as a wrapper around this API endpoint.
In order to evaluate whether a profile is a part of a segment, run the below code. This acts as a wrapper around this API Method. It will use the web key to do this, and run evaluation through a CMS keyspace created upon installation of the integration.