Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing segment/list issue #55

Closed
wants to merge 1 commit into from

Conversation

haktansuren
Copy link

Following code produces "An unexpected problem occurred with the API request." (image attached below the code)

$ac = new ActiveCampaign("API_URL", "API_KEY");
$ac->version(2);

$params = array(
        "sort" => "id",
        "sort_direction" => "DESC",
        "page" => 1,
);
$params = http_build_query($params);

$response = $ac->api("segment/list?$params");

echo "<p>Segments:</p>";
echo "<pre>";
print_r($response);
echo "</pre>";

image

Alternatively you can provide result_code or success in segment_list API output

@pevans
Copy link
Contributor

pevans commented Sep 30, 2016

I'm going to close this pull request pending some changes we will be making next week.

@pevans pevans closed this Sep 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants