Coder Social home page Coder Social logo

Comments (8)

mthommes avatar mthommes commented on June 9, 2024

What does account/view return for you? That should be the hosted account details. user/view is completely different and pertains to the logged-in user.

We actually don't want "subscriber" being referenced anymore, so that's why contact is used there.

from activecampaign-api-php.

EVODelavega avatar EVODelavega commented on June 9, 2024

Using contact causes issues with the current PHP api wrapper. Given the fact that I've been re-writing that same API almost completely, I'll make sure that contact and subscriber are interchangeable.
The account/view returned, if I'm not mistaken an error saying I was not permitted to view the file...

Ah well, all in all: adding the output buffers is a simple fix that would enable the Connector class to set the headers, though... all the other issues might be down to my "updates" to the API wrapper

from activecampaign-api-php.

mthommes avatar mthommes commented on June 9, 2024

Okay. Thank you for your testing and updates. If you do notice an issue with a call, just let us know and we'll take a look to see if it's something outside of the wrapper (perhaps internally in the software) causing the issue.

from activecampaign-api-php.

EVODelavega avatar EVODelavega commented on June 9, 2024

I have noticed an issue with the campaign_create call when running the examples.php file. All calls are working just fine, the list is added, an email address is synced, but the campaign_create call returns

<br><a href="javascript:void(0)" onclick="var x = document.getElementById('4081bbmain'); x.style.display = (x.style.display=='none' ? 'block' : 'none')" style="font-size:10px; color:#FF9900; text-decoration:none;">[&nbsp;+&nbsp;]</a>
<div class="trapperr" style="border: 2px dashed #800000; background-color: #C0C0C0; padding: 4px; margin: 10px; display: none;" id="4081bbmain">
    <i>File Location:</i in /home/foobar/repos/activecampaign-api-php/src/AC/Connector.php on line 322
string(43) "&api_action=campaign_create&api_output=json"

When I check the campaigns on the web interface, I can see the campaign listed, but when I try to look at the message that should be sent throught this campaign, I see an uncaught Exception is being thrown somewhere:

File Location: /var/www/activecampain/ac_global/swiftmailer/php4/Swift/Errors.php
Line: 104
Message:
Uncaught Error of type [Swift_ConnectionException] with message [The SMTP connection failed to start [:25]: fsockopen returned Error Number 0 and Error String 'php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution']
@0 campaign_quick_send() in /var/www/activecampain/preview.php on line 48
@1 campaign_send() in /var/www/activecampain/admin/functions/campaign.send.php on line 233
@2 CampaignMailer::CampaignMailer() in /var/www/activecampain/admin/functions/campaign.send.php on line 1446
@3 CampaignMailer::setCampaign() in /var/www/activecampain/admin/functions/mailer/campaignmailer.php on line 75
@4 CampaignMailer::initMailer() in /var/www/activecampain/admin/functions/mailer/campaignmailer.php on line 96

from activecampaign-api-php.

mthommes avatar mthommes commented on June 9, 2024

The campaign_create might have been a temporary error. Is it still happening for you? I tested just now without problems. Let me know if the issue continues.

from activecampaign-api-php.

EVODelavega avatar EVODelavega commented on June 9, 2024

The campaign_create was indeed a temporary glitch, which has been fixed now. As far as I am concerned this is a non-issue, and this thread can be closed. Though 1 final (unrelated) question. As you probably know, I forked this repo, and made it composer-aware, refactored quite a bit of the code, so the API wrapper can be used as a dependency in certain projects. I've added some details to the readme of that fork, and extended an open invitation to create pull-requests.
Since I didn't see any specific license information, I think I'm not in violation of anything. But just to be on the safe side, would you care to let me know if what I did is OK or not?

If you want, I'm only too happy to include an OSS license of your choice, of course.

from activecampaign-api-php.

mthommes avatar mthommes commented on June 9, 2024

It's fine at the moment. If something changes I'll let you know. Thanks for asking!

I'd also like to promote your fork a little bit in order to get some usage. I'll start with a tweet.

from activecampaign-api-php.

EVODelavega avatar EVODelavega commented on June 9, 2024

By all means, feel free! I'll keep updating the fork, meanwhile. Cheers

from activecampaign-api-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.