1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

MBAPI remote.php and Plesk Billing version 6

Discussion in 'Customer&Business Manager (formerly Plesk Billing)' started by AIdanW, Jun 30, 2010.

  1. AIdanW

    AIdanW Guest

    Hi guys,

    I'm trying to write a small script to export journal data from plesk billing via MBAPI; I've crafted the request to what I believe to be correct, but when I check the responses I get they're always empty (i.e. no helpful errors), and the response code is always "200 OK"... so I'm not sure what's wrong with what I'm doing. Here's the request headers and body I'm submitting:

    POST /lib-billing/include/lib-mbapi/remote.php HTTP/1.1
    Host: pb-host.mynetwork.com
    Accept-Encoding: identity
    Content-Length: 463
    Content-type: application/x-www-form-urlencoded
    Accept: text/plain
    Now, I know I have a client named John in the data base, so I don't understand why this is not working. I've triple checked the remoteAccessHash, the input XML, etc, and everything seems fine according to the docs... is this simply a case of the documentation I'm following being out of date? Can anybody shed some light on what I'm doing wrong?

  2. AIdanW

    AIdanW Guest

    I've figured this one out - seems I just needed to add my IP addresses to a config file variable "remoteIP".

    Still, I think it took more work than I believe was necessary to discover this info; it's out there, but I wasn't able to find it navigating parallels.com... I ended up stumbling across it via google searches. I have to say, you guys have some really nice products but your developer documentation could be a little better organized.