Troubleshooting AWeber API "Method requires access to Subscriber information" error
I'm trying to retrieve a specific subscriber from an AWeber list using the PHP SDK.
开发者_C百科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.
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:
- log into the labs.aweber.com site and request access to subscriber personal data
- get a new access token for your app
- use that new access token and you should be able to find by subscribers.
Please refer to the documentation links below
- https://labs.aweber.com/docs/reference/1.0#subscribers (findSubscriber method)
- https://labs.aweber.com/docs/permissions (permissions)
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.
精彩评论