mhenrixon / active_campaign

A simple ruby wrapper for the ActiveCampaign API

Home Page:http://www.activecampaign.com/api/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting "You are not authorized to access this file" error when calling list_list

Siggs2000 opened this issue · comments

I'm running into this complete error:

{"result_code"=>0, "result_message"=>"You are not authorized to access this file", "result_output"=>"json", "results"=>[]}

When calling the client.list_list ids: 'all' after building the client like this:

client = ::ActiveCampaign::Client.new(
     api_endpoint: 'https://MY_URL.api-us1.com/admin/api.php',        
     api_key: 'MY_KEY_HERE'
) 

This code actually used to work properly but seems to have broken. Is anyone else seeing this issue? Or have any tips?

Are you trying this in testing or for real? I've had some issues in the past like that with their API. Nothing changed that I know of.

@mhenrixon This is in live mode, with real credentials. It's been working for over a year without issue until suddenly, which is weird for sure.