Get listener profiles of one business - ParllaySocial/parllay-php-sdk GitHub Wiki

Get listener profiles of one business

Code

require_once 'parllay.php';

$parllay = new Parllay(array(
    "appId" => "YOUR_APP_ID",
    "secret" => "YOUR_APP_SECRET"
));

$listener_profiles = $parllay->api("/[business_id]/listener_profiles");

Result

Array
(
    [data] => Array
        (
            [0] => Array
                (
                    [id] => PROFILE_ID
                    [name] => PROFILE_NAME
                    [countries] => COUNTRIES
                    [states] => STATES
                    [cities] => CITIES
                    [zips] => ZIPS
                    [languages] => Array
                        (
                            [0] => Array
                                (
                                    [id] => en
                                    [name] => English
                                )

                        )

                    [sources] => twitter,facebook
                    [email] => no
                    [keyword_groups] => Array
                        (
                            [0] => Array
                                (
                                    [id] => KEYWORDGROUP_ID
                                    [name] => KEYWORDGROUP_NAME
                                    [category] => brand
                                    [listen_keywords] => LISTEN_KEYWORDS
                                    [must_have_keywords] => MUST_HAVE_KEYWORDS
                                    [exclude_keywords] => EXCLUDE_KEYWORDS
                                    [status] => 1
                                )

                            ...

                        )

                )

        )

)