Go Back   ISPsystem.com Forums > Modifications / Add-ons > Scripting / API

Notices

Reply
 
Thread Tools
Old 07-28-2011, 02:04 PM   #1
Junior Member
 
Join Date: Jul 2011
Posts: 2
koldstar is on a distinguished road
Default Access Deny

Hi

I'm trying to do some tasks using the API but I have ran into a problem: It works fine when i execute my command through the URL in the browser, but when I try to run it from my PHP script I get the error: "Access Deny"

The script is running on the main domain on the same server as ISPmanager. Do I have to allow the script access somewhere?
koldstar is offline   Reply With Quote
Old 07-28-2011, 02:51 PM   #2
ISPsystem team
 
Join Date: Oct 2009
Posts: 118
vian is on a distinguished road
Default

It happens because you have to authorize on a server. To do it use parameter "authinfo=userass"
vian is offline   Reply With Quote
Old 07-28-2011, 03:14 PM   #3
Junior Member
 
Join Date: Jul 2011
Posts: 2
koldstar is on a distinguished road
Default

Thanks.

I already got it in the URL and I just found out that it works with the root user. What I really like is to use a Resseller acount for athentication. Is that posible?
koldstar is offline   Reply With Quote
Old 07-28-2011, 05:29 PM   #4
ISPsystem team
 
slava's Avatar
 
Join Date: May 2008
Location: ISPsystem
Posts: 587
slava is on a distinguished road
Default

What command you can't run as reseller? Please show API URL string.
slava is offline   Reply With Quote
Reply

Tags
api access deny php

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:22 AM.