I am trying to get the lists details from aweber account i can get all lists by hard code access keys but what if i want to fetch from database.
here is my code:
$consumerKey = env('consumerKey');
$consumerSecret = env('consumerSecret');
$user_id = \Illuminate\Support\Facades\Auth::user();
$keys = \Illuminate\Support\Facades \ DB::table('access_keys')->where('user_id','=', $user_id)->value('accessTokenKey','accessTokenSecret');
$accessKey = $keys;
$accessSecret = $keys
I am having invalid accesstoken from this query and i have saved accesskey and accesssecret into my database. when i hard code i can get all the lists but i want to fetch from database:
Any help would be appreciated!
First get Aweber API code from git:- https://github.com/aweber/AWeber-API-PHP-Library
To get lists from Aweber account , you need to follow below details:-