AWeber::ForbiddenRequestError: Method requires extended permissions.

You encounter with this error message and no idea what this is about??

You are at the right place.

What is this?

This error message occurs when you try to access some data from Aweber via API but dont have permission specific to get more details about some stuff.

I got to know about this error when I tried to access name, email, etc of some subscriber. Though I had access to all of my lists.

 

How to get out of this?

aweber5

Click the Settings Icon in you labs.aweber.com dashboard

aweber4

Tick the checkboxes for permissions

Then you need to regenerate the `authorize_url`

oauth = AWeber::OAuth.new(ENV['AWEBER_APP_CONSUMER_KEY'], ENV['AWEBER_APP_CONSUMER_SECRET_KEY'])
 => #<AWeber::OAuth:0x0000000a8eaf58 @consumer_token="XXXXXXXXXXXXXXX", @consumer_secret="XXXXXXXXXXXXXXXXXXX"> 
2.2.1 :004 > oauth.request_token.authorize_url
 => "https://auth.aweber.com/1.0/oauth/authorize?oauth_token=XCXXXXXXXXXXXXXXXXXX"

Then goto the URL and you will find like this

aweber_3

give creds and `Allow Access` the app

You will get like this

AWEBER_2

then

# Verification code is the code you get from the last image
oauth.authorize_with_verifier('verification_code')
puts 'Access token: ' + oauth.access_token.token
puts 'Access token secret: ' + oauth.access_token.secret

This will print you out the access_token and access_token_secret. Modify/Update the tokens you had previously. Then everything will start working

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s