Creating new subscribers
I am trying to programmatically add a subscriber. I am using PHP and the HTTP POST curl method which works for me when creatig a free account for users - however when adding a new subscriber I'm getting a 404 with the message 'There is no subscriber with a customer id of <my>'.
I've checked the url, the xml that's being posted and have debugged to my hearts content - but can't see the answer.
The url I'm usng is:
https://<token>@spreedly.com/api/v4/<testaccountname>/subscribers.xml
The xml I'm posting looks like this:
<subscriber><customer-id><currentuser /></customer-id><screen-name><currentname>-<currentsurname /></currentname></screen-name></subscriber>
Can you shed any light??
John
</testaccountname></token></my>
I've checked the url, the xml that's being posted and have debugged to my hearts content - but can't see the answer.
The url I'm usng is:
https://<token>@spreedly.com/api/v4/<testaccountname>/subscribers.xml
The xml I'm posting looks like this:
<subscriber><customer-id><currentuser /></customer-id><screen-name><currentname>-<currentsurname /></currentname></screen-name></subscriber>
Can you shed any light??
John
</testaccountname></token></my>
1
person has this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Have you tried doing it with curl first? A good way to debug issues like this is to start with curl, get that working, then translate into your implementation language. If you can throw a failing curl command at me I can much more easily help you find the problem. Thanks!
I’m sure we can figure it out
-
Thanks Nathaniel. I get a successful response with curl so I guess I must have overlooked something. I'll take a new approach and see if that works. Thanks for the response. -
No worries - let me know if there's anything I can do to help!
Loading Profile...




EMPLOYEE