Trouble connecting to API

Hello, brand new account and when I try to basically just use your code exactly from your php example section with the API key provided in my settings I’m getting the following response. Any ideas on what I’m doing wrong?

It’s a brand new account. I have confirmed the email. I’m not seeing any account errors. There is only one list so far with 2 emails in it with the ID of 1. I replaced the API key below with xxxxx’s as to not share my Key.

Result: FAILED
Message:
The entire result printed out:
Raw response printed out:
{“result_code”:0,“result_message”:“This account is currently unavailable. Please visit the main account login screen to re-activate it.”,“result_output”:“json”}
API URL that returned the result:
http://account.api-us1.com/admin/api.php?api_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&api_action=list_view&api_output=serialize&id=1

Hello! I think the issue might be the “account.api-us1.com” portion. That needs to be your actual account API URL, which you can find under the settings section. Here is some more information on how to find your API URL.

Let us know if that doesn’t fix it.

4 Likes

That was it… it’s always something simple isn’t it? lol… thanks for the reply. :slight_smile:

1 Like