3

I'm trying to retrieve a specific subscriber from an AWeber list using the PHP SDK.

Code:

$subscribers = $account->loadFromUrl("/accounts/$account->id/lists/$list_id/subscribers");
var_dump($subscribers->find(array('email' => $email))); exit;

The problem is, I'm getting the following error:

WebServiceError: Method requires access to Subscriber information.

Google comes empty handed.

1 Answers1

9

The error you're encountering is documented on the labs.aweber.com site.

You're getting that error because the findSubscriber method requires access to subscribers personal information (name, email, etc...) and your app has not requested access to subscribers personal information from the AWeber customer who authorized it.

AWeber API applications do not request access to subscribers personal data by default. You have to specifically check off that you want access to subscriber personal data before your application is authorized.

To correct this:

  1. log into the labs.aweber.com site and request access to subscriber personal data
  2. get a new access token for your app
  3. use that new access token and you should be able to find by subscribers.

Please refer to the documentation links below

As always if you have any questions please log into the labs site, click support and someone from the API support team will be happy to assist you.

  • 1
    The key point for me was **GET A NEW ACCESS TOKEN**. Even though the permissions show as updated, until you reset the key it will still reject the request. – Marty Mar 18 '17 at 04:11