AWeber Api subscribers problem

2 replies
Hello all,

I'm having problem in AWeber's Api with PHP,
see the code below:

$email = 'soeemail@somesite.com';
foreach($account->lists as $offset => $list) {
$subscriber = $account->loadFromUrl("/accounts/$account->id/lists/$list->id/subscribers?ws.op=find&email=$email");
echo $subscriber->id;
break;
}


The problem is that $subscriber variable contains the subscriber information, and when I use print_r() or var_dump() it shows the contents of it, but when I try to print the id or anything else of the subscriber using echo or any printing functions, it shows nothing !!

Please help me fast, I don't know how to fix this.

Thanks
#api #aweber #problem #subscribers
  • Profile picture of the author stma
    Show the contents of your print_r here so we can help. Probably just calling it wrong.
    {{ DiscussionBoard.errors[3673709].message }}
  • Profile picture of the author deltacolo
    without seeing the code this is only a general direction for you.

    you will need to reg the id of the array.

    eg

    $subscriber['id']
    $subscriber['email']

    something like that will help.
    {{ DiscussionBoard.errors[4747797].message }}

Trending Topics