Comments (8)
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.
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.
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.
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;">[ + ]</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.
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.
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.
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.
By all means, feel free! I'll keep updating the fork, meanwhile. Cheers
from activecampaign-api-php.
Related Issues (20)
- An unespected problem occurred with the api HOT 1
- Address api endpoint HOT 2
- Date custom field HOT 12
- Your session has expired. Please login again. HOT 6
- No support for tasks HOT 2
- Coonect a store via API
- composer install says Nothing to install or update HOT 1
- Docs HOT 2
- Search User by First Name
- Create contact with Address and Address2 values HOT 2
- Bom characters in response as exception
- Don't disable TLS verification by default
- Changing versions breaks url_base property in ActiveCampaign class
- contact/sync width custom checkbox field.
- using api to send email with template HOT 1
- version 3 support? HOT 7
- Api v3
- API Wrapper not working with PHP 8.1.11 HOT 1
- Get all contacts of a tag
- Repository hasn't been updated since Dec 7, 2017
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from activecampaign-api-php.