aweber/AWeber-API-PHP-Library

'AWeberResourceNotImplemented' with message 'Resource "email" is not implemented on this resource.'

Closed this issue · 3 comments

I've tried demo and other examples. Works fine.
Whenever I try to get subscriber's email like this:

$subscriber->email;

I get the following error:

Fatal error: Uncaught exception 'AWeberResourceNotImplemented' with message 'Resource "email" is not implemented on this resource.' in...

What am I missing?

The full script is:

getRequestToken($callbackUrl); setcookie('requestTokenSecret', $requestTokenSecret); setcookie('callbackUrl', $callbackUrl); header("Location: {$aweber->getAuthorizeUrl()}"); exit(); } ``` $aweber->user->tokenSecret = $_COOKIE['requestTokenSecret']; $aweber->user->requestToken = $_GET['oauth_token']; $aweber->user->verifier = $_GET['oauth_verifier']; list($accessToken, $accessTokenSecret) = $aweber->getAccessToken(); setcookie('accessToken', $accessToken); setcookie('accessTokenSecret', $accessTokenSecret); header('Location: '.$_COOKIE['callbackUrl']); exit(); ``` } $aweber->adapter->debug = false; $account = $aweber->getAccount($_COOKIE['accessToken'], $_COOKIE['accessTokenSecret']); foreach ($account->lists as $list) { print "
  • LIST: " . $list->name; foreach ($list->subscribers as $subscriber) { print "
  • SUBSCRIBER: " . $subscriber->email; } } ?>
  • Hello:

    The errors that you're experiencing are usually due to a permissions issue with your app.
    The subscriber entry resource has certain fields (such as email address) that require additional
    permissions before you can view them.

    Please make sure your API App is requesting access to subscriber data and then
    get a new access token and try again:

    1. log into labs.aweber.com
    2. click 'My Apps'
    3. click the tools icon for your app (found on the right side)
    4. click 'permission settings'
    5. check off 'request subscriber data'
    6. press 'save permissions data'
    7. press 'save'

    In your API App you will need to get a new access token.
    Clear your cookies and your script should automatically prompt you to connect to your AWeber account again.

    If you see a message that says "This application requires access to your subscribers' personal information, such as name and email address" when attempting to authorize your AWeber account, then your permissions are set correctly and you should be able to view the subscribers email addresses.

    Let us know if you continue to have any problems with the client library. You can contact our help desk directly by clicking 'Support' when logged into labs.aweber.com.

    Thanks!

    • Edward Long

    Please do not write below this line, to reply write above

    [AWeber] [AWeber-API-PHP-Library] 'AWeberResourceNotImplemented' with message 'Resource "email" is not... (ticket #80829)


    AWeber - Kim Robbins, Jan-10 08:51 am (EST):

    I've tried demo and other examples. Works fine.
    Whenever I try to get subscriber's email like this:

    $subscriber->email;

    I get following error:

    Fatal error: Uncaught exception 'AWeberResourceNotImplemented' with message 'Resource "email" is not implemented on this resource.' in...

    What am I missing?

    The full script is:

    getRequestToken($callbackUrl); setcookie('requestTokenSecret', $requestTokenSecret); setcookie('callbackUrl', $callbackUrl); header("Location: {$aweber->getAuthorizeUrl()}"); exit(); } ``` $aweber->user->tokenSecret = $_COOKIE['requestTokenSecret']; $aweber->user->requestToken = $_GET['oauth_token']; $aweber->user->verifier = $_GET['oauth_verifier']; list($accessToken, $accessTokenSecret) = $aweber->getAccessToken(); setcookie('accessToken', $accessToken); setcookie('accessTokenSecret', $accessTokenSecret); header('Location: '.$_COOKIE['callbackUrl']); exit(); ``` } $aweber->adapter->debug = false; $account = $aweber->getAccount($_COOKIE['accessToken'], $_COOKIE['accessTokenSecret']); foreach ($account->lists as $list) { print "
  • LIST: " . $list->name; foreach ($list->subscribers as $subscriber) { print "
  • SUBSCRIBER: " . $subscriber->email; } } ?>

    Reply to this email directly or view it on GitHub:
    #12

    Regards,
    Kim Robbins
    Customer Solutions Specialist
    AWeber Communications, Inc.
    http://www.aweber.com


    This email is a service from AWeber Communications

  • Please do not write below this line, to reply write above

    [AWeber] Re: [AWeber-API-PHP-Library] 'AWeberResourceNotImplemented' with message 'Resource "email" is not... (ticket #80829)

    antvy,

    Your request (#80829) has been updated.

    To review, comment or reopen the request, simple reply to this email.


    AWeber - Steve Elsner, Jan-11 09:31 am (EST):

    Looks like Ed answered this one on GitHub. Closing it out.


    AWeber - Kim Robbins, Jan-10 08:51 am (EST):

    I've tried demo and other examples. Works fine.
    Whenever I try to get subscriber's email like this:

    $subscriber->email;

    I get following error:

    Fatal error: Uncaught exception 'AWeberResourceNotImplemented' with message 'Resource "email" is not implemented on this resource.' in...

    What am I missing?

    The full script is:

    getRequestToken($callbackUrl); setcookie('requestTokenSecret', $requestTokenSecret); setcookie('callbackUrl', $callbackUrl); header("Location: {$aweber->getAuthorizeUrl()}"); exit(); } ``` $aweber->user->tokenSecret = $_COOKIE['requestTokenSecret']; $aweber->user->requestToken = $_GET['oauth_token']; $aweber->user->verifier = $_GET['oauth_verifier']; list($accessToken, $accessTokenSecret) = $aweber->getAccessToken(); setcookie('accessToken', $accessToken); setcookie('accessTokenSecret', $accessTokenSecret); header('Location: '.$_COOKIE['callbackUrl']); exit(); ``` } $aweber->adapter->debug = false; $account = $aweber->getAccount($_COOKIE['accessToken'], $_COOKIE['accessTokenSecret']); foreach ($account->lists as $list) { print "
  • LIST: " . $list->name; foreach ($list->subscribers as $subscriber) { print "
  • SUBSCRIBER: " . $subscriber->email; } } ?>

    Reply to this email directly or view it on GitHub:
    #12

    Regards,
    Kim Robbins
    Customer Solutions Specialist
    AWeber Communications, Inc.
    http://www.aweber.com


    This email is a service from AWeber Communications