WebsitePanel Integration API



Similar documents
WHMCS Integration Manual

Customize Mobile Apps with MicroStrategy SDK: Custom Security, Plugins, and Extensions

Interworks Cloud Platform & WebsitePanel Integration

Role Based Access Control. Using PHP Sessions

Reseller Guide. Setting up your Reseller Account in Website Panel

SYSPRO App Store: Registration Guide

Online Timesheets Guide for Contractors

Intellicus Single Sign-on

<?php if (Login::isLogged(Login::$_login_front)) { Helper::redirect(Login::$_dashboard_front); }

Overview of Web Services API

MultiSite Manager. User Guide

About This Document 3. Integration and Automation Capabilities 4. Command-Line Interface (CLI) 8. API RPC Protocol 9.

SmarterMeasure Inbound Single Sign On (SSO) Version 1.3 Copyright 2010 SmarterServices, LLC / SmarterServices.com PO Box , Deatsville, AL 36022

Brainshark/Salesforce.com Integration Installation Procedures

The full setup includes the server itself, the server control panel, Firebird Database Server, and three sample applications with source code.

The VerticalResponse API Guide

How to Use JCWHosting Reseller Cloud Storage Solution

DocuSign for SharePoint

A SQL Injection : Internal Investigation of Injection, Detection and Prevention of SQL Injection Attacks

TARGETPROCESS WEB SERVICES GUIDE

Qualtrics Single Sign-On Specification

Programming Autodesk PLM 360 Using REST. Doug Redmond Software Engineer, Autodesk

Interworks Cloud Platform & CloudPortal Integration

BULK SMS APPLICATION USER MANUAL

PHP Integration Kit. Version User Guide

How to configure the TopCloudXL WHMCS plugin (version 2+) Update: Version: 2.2

Mobile Device Access Simple Application Guide

c360 to Case Installation and Configuration Guide

Click-To-Talk. ZyXEL IP PBX License IP PBX LOGIN DETAILS. Edition 1, 07/2009. LAN IP: WAN IP:

Office365Mon Subscription Management API

Mobile device management

FLX UC1000/1500 Registering with Siemens HiPath 4000 & OpenScape Voice Server

Self Service User Authentication Service Usage Guidelines. Copyright 2013, CionSystems Inc.

OneLogin Integration User Guide

ICMS IT HANDBOOK. IT Handbook for Students. Logins. Student Systems

Virtual Code Authentication User s Guide. June 25, 2015

API Integration Payment21 Recurring Billing

Application note: Connecting the to a Database

PayPal Usage Document

FHLBNY File Transfer System (FTS)

Webmail Using the Hush Encryption Engine

GATEWAY CONFIGURATION GUIDE. PowerCharge

Phone Inventory 1.0 (1000) Installation and Administration Guide

This document outlines the backend specifications of the CITI Program Single Sign On Portal.

Secure Messaging Server Console... 2

Vital Link 2.X Pre-Install Checklist

e-filing Secure Web Service User Manual

Leverage Your EMC Storage Investment with User Provisioning for Syncplicity:

API Integration Payment21 Button

Central Administration User Guide

PayPal PRO Sandbox Testing

OSF INTEGRATOR for. Integration Guide

isecure User Manual For Time Attendance

ADT: Inventory Manager. Version 1.0

CompleteSBC: Getting Started Guide

Manage cloud infrastructures using Zend Framework

MXSAVE XMLRPC Web Service Guide. Last Revision: 6/14/2012

Understanding Sql Injection

EFSP Certification Test Suite Version 1.2

CNR Security Web Service & Sample Application. Introducing Cizer.Net Reporting Security Web Service! Contents:

Integrating ConnectWise Service Desk Ticketing with the Cisco OnPlus Portal

KFKI Unified Messaging Server (UMS) User manual

HTTPS hg clone plugin library SSH hg clone plugin library

DocuSign for Microsoft Dynamics CRM

How do I share a file with a friend or trusted associate?

Marketo GoToWebinar Adapter. User Guide Version 3.5

Comodo LoginPro Software Version 1.5

Identity and Access Management (IdAM) Security Access Framework (SAF) for CDSS

CONFIGURATION NOTE. Connecting Ascom i62 to Microsoft Lync Server 2010/2013 via Audiocodes SPS [ ] Gothenburg

User Manual BULKSMSNAIJA.COM. Mobile Services Reseller Panel

Building Secure Applications. James Tedrick

Quick Instructions Installing on a VPS (Virtual Private Server)

Quality Center LDAP Guide

ESMO Online event registration instructions Register someone else or few participants (1-9 persons)

MULTI-FACTOR AUTHENTICATION SET-UP

USING MYWEBSQL FIGURE 1: FIRST AUTHENTICATION LAYER (ENTER YOUR REGULAR SIMMONS USERNAME AND PASSWORD)

Personal Computer and Mobile Printing

OpenSRS Quickstart Guide April 15, 2011

Implementing Cisco TelePresence Video Solution, Part 1

*Described in the Release Notes. Generally this step will be performed by the admin end-users.

Integration of Hotel Property Management Systems (HPMS) with Global Internet Reservation Systems

Integrating Autotask Service Desk Ticketing with the Cisco OnPlus Portal

SRFax Fax API Web Services Documentation

Kaseya 2. User Guide. Version 1.1

Mutual Fund Web Service Developer Guide

Manage2 API. by: J. Nick Koston

Parallels PBA-S Integration Manual

Comodo Mobile Device Manager Software Version 3.0

PageScope Router. Version 1.5. Configuration Guide

Grandstream Networks, Inc.

Camilyo APS package by Techno Mango Service Provide Deployment Guide Version 1.0

MAIL1CLICK API - rel 1.35

Association Anywhere Authentication Web Service

Department Service Integration with e-pramaan

OAuth 2.0 Developers Guide. Ping Identity, Inc th Street, Suite 100, Denver, CO

Transcription:

WebsitePanel Integration API Author: Feodor Fitsner Last updated: 02/12/2010 Version: 1.0 Table of Contents Introduction... 1 Requirements... 1 Basic Authentication... 1 Basic Web Services... 1 Manage User Accounts... 1 Manage Hosting Spaces... 4 Upgrade/Downgrade User s Packages... 5 Calling WebsitePanel Web Service from PHP... 6 Document History... 6 Introduction This document describes basic WebsitePanel Integration API that could be used in 3rd-party applications. Requirements WSE 3.0 or Basic Authentication Each API call should have user s credentials provided Basic Authentication For interacting with WebsitePanel API you should use Basic Authentication. WebsitePanel recognizes Authorization header with the user credentials provided in the following format: username:password. Basic Web Services Manage User Accounts AddUser (UserInfo user, bool sendletter) creates a user account and sends confirmation to the user s email. 1

The user parameter requires the following fields to be set: OwnerId ID of the user that owns account to be created; RoleId ID of the user role to be created. The following roles available: 1 Administrator, 2 Reseller and 3 User; StatusId ID of the user status to be created. The following statuses available: 1 Active, 2 Suspended, 3 Cancelled and 4 Pending; IsDemo specifies that created account intends for demonstration purposes only. When user is in demo all management functionality becomes inaccessible; IsPeer specifies that created account is a peer for the user s owner; Username username of the account to be created; Password password of the account to be created; FirstName first name of the account to be created; LastName last name of the account to be created; Email e-mail address of the account to be created; All other fields of the user parameter are optional. Also you may decide to set sendletter parameter to true if you would like to send user registration notification. Method returns ID of the created account or error code occurred during account creation. UserExists (string username) gets a value indicating whether a username already exists. AuthenticateUser (string username, string password, string ip) gets a value indicating that provided credentials are correct. Endpoint: http://<enterprise Server URL>/esAuthentication.asmx 2

Method returns the following statuses: -109 wrong username has been specified, -110 wrong password has been specified, -105 user account has been cancelled, -103 user account still in pending status, 0 user credentials specified are correct; GetUserById (int userid) gets user account details by ID specified; GetUserByUsername (string username) gets user account details by username specified; GetUsers (int ownerid, bool recursive) gets all users for the specified owner. If you would like to obtain users recursively then set recursive parameter to true ; UpdateUser (UserInfo user) updates user account details. Returns status 0 if account updated DeleteUser (int userid) deletes user account from the database. Returns 0 if account deleted ChangeUserPassword (int userid, string password) changes user account password. Returns 0 if password changed ChangeUserStatus (int userid, UserStatus status) changes user account current status. The following statuses available: 1 Active, 2 Suspended, 3 Cancelled and 4 Pending; Returns 0 if status changed 3

Manage Hosting Spaces AddPackage (int userid, int planid, string packagename, string packagecomments, int statusid, DateTime purchasedate) adds a package to the specified user account. As you can see the most of parameters are self-explainable. The only two parameters require additional explanation: statusid status of the user s package to be created. The following statuses are available: 1 Active, 2 - Suspended, 3 Cancelled, 4 New; purchasedate package purchase date (required); Methods returns PackageResult object that contains created user package ID or error code and exceeding quotas if any; UpdatePackage (PackageInfo package) updates a hosting package. Returns PackageResult object that has 0 status code if package updated successfully or error code and exceeding quotas if any; DeletePackage (int packageid) deletes a user s hosting package. Returns 0 if package deleted ChangePackageStatus (int packageid, PackageStatus status) changes user s hosting package current status. The following statuses are available: 1 Active, 2 - Suspended, 3 Cancelled, 4 New. Returns 0 if package status changed UpdatePackageName (int packageid, string packagename, string packagecomments) updates user s package name and comments. Returns 0 if package name and comments changed successfully. 4

Upgrade/Downgrade User s Packages AddPackageAddon (PackageAddonInfo addon) adds a hosting addon to the user s hosting package. The addon parameter requires the following fields to be set: PackageId ID of the package to be upgraded; PlanId ID of the hosting addon you wish to add to the hosting package; Quantity quantity of the hosting addon. The minimum value is 1; StatusId ID of the hosting addon status. The following statuses are available: 1 Active, 2 - Suspended, 3 Cancelled, 4 New; PurchaseDate hosting addon purchased date; Returns PackageResult object that contains created hosting package addon ID or error code and exceeding quotas if any. UpdatePackageAddon (PackageAddonInfo addon) updates a hosting package addon details. Returns PackageResult object that contains 0 status code if hosting package addon updated successfully or error code and exceeding quotas if any. DeletePackageAddon (int packageaddonid) deletes addon from the hosting package assigned. Returns 0 if addon deleted from hosting package successfully. GetPackageAddon (int packageaddonid) gets a hosting package addon details. 5

Calling WebsitePanel Web Service from PHP The following sample code adds a new user to WebsitePanel database. NuSOAP library is used to work with web services from PHP: <?php require_once ("nusoap/lib/nusoap.php"); /* Set address of Enterprise Server web service */ $WSP = new soapclient('http://127.0.0.1:9002/esusers.asmx?wsdl', true); $WSP->soap_defencoding = 'utf-8'; /* Set credentials - this is WebsitePanel login*/ $WSP->setCredentials("serveradmin", "serveradmin"); /* specify method parameters */ $param = array("username" => "serveradmin"); /* call web method */ $result = $WSP->call('UserExists', array('parameters' => $param), 'http://smbsaas/websitepanel/enterpriseserver', 'http://smbsaas/websitepanel/enterpriseserver/userexists'); /* process results */ if ($WSP->fault) { echo '<h2>fault </h2><pre>'; print_r($result); echo '</pre>'; } else { $err = $WSP->getError(); if ($err) { echo '<h2>error</h2><pre>'. $err. '</pre>'; } else { echo '<h2>result</h2><pre>'; print_r($result); echo '</pre>'; } } echo '<h2>request</h2><pre>'. htmlspecialchars($wsp->request, ENT_QUOTES). '</pre>'; echo '<h2>response</h2><pre>'. htmlspecialchars($wsp->response, ENT_QUOTES). '</pre>'; echo '<h2>debug</h2><pre>'. htmlspecialchars($wsp->debug_str, ENT_QUOTES). '</pre>';?> Document History Version Date Released Author Changes 1.0 09/14/2009 Feodor Fitsner Initial document version in downloadable format. 6