What are the Aweber API variables $ account_id and $ list_id?

You can check here: https://labs.aweber.com/docs/code_samples/subs/create

The script, to add a new subscriber to the list via api, requires these two pieces of information ... only I can not understand for me that these two variables! I beat every little aspect of my Aweber subscriber account and my Aweber Labs account ... and I cannot find any link to any of these variables anywhere. I handed them some tickets and have not yet received an answer.

Does anyone have any ideas? I tried the names of my accounts, the names of my lists, to no avail!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Well, I did it! You can get the values ​​of both of these variables by dropping some other variables in the aweber api after making certain api calls.

first enter your account id:

$account = $aweber->getAccount($accessKey, $accessSecret); 

then the vardump or print_r $ account.

Next we get the list identifier:

 $account = $aweber->getAccount($accessKey, $accessSecret); $list_url = 'https://api.aweber.com/1.0/accounts/<id>/lists'; $lists = $account->loadFromUrl($list_url); 

then vardump or print_r $.

And you are all set! I am so happy that I realized that it was quite a long time. Hope this saves you a little time.

+4
source share
4 answers

I was also tormented by finding $ list_ID, so I went to deactivate the list and create a new one, and "discovered" that if you hover over the Deactivate button, you will get a URL that you can copy, and this gives both% accounts and% list Ids

https://www.aweber.com/users/lists/deactivate/ $ accountID / $ lisID

like that .... https://www.aweber.com/users/lists/deactivate/123456/123456

Hope this helps make someone like a super simple solution

+6
source

Let me tell you how to get the value of $ list_id ... log in to your AWeber account, and then create a new integer list value from the list only.

+1
source

Log in first.

1) click Reports> Settings . Your account identifier will appear in the field, for example ?id=XXXXX

2) click List Settings> List Settings . There you will see the list identifier under the name.

ps To add a subscriber, you can use this - Automatically add aweber to the list

+1
source

The correct answer is Ann Allen, but ...

Verify the endpoint return / accounts. It should return the same account identifier as in the link, but I had cases when they were different (strange, right?). Use the account identifier returned by the / accounts endpoint and other endpoints to retrieve lists, subscribers, etc. Will start to work. As if some accounts have two identifiers, one partially works, and the other fully works.

+1
source

All Articles