Posts Tagged ‘kayako’

Kayako API extension: CreateUser, UpdatePassword, DeleteUser

Wednesday, September 16th, 2009

I’ve played with the nice and clear Craig Brass Kayako API, and added some extensions to allow the following remote functions:

CreateUser, UpdatePassword, DeleteUser

get the patch from here: http://interhost.co.il/api.class.patch
installation: patch -p0 < api.class.patch

and also apply this patch:

http://interhost.co.il/wsdl.patch
install:
patch -p0 < wsdl.patch
location: integrationapi/lib

and I also extended the example (api client), get it from here:
http://www.interhost…ako.api.php.txt

usage example:

http://api.caller.com/kayako.api.php?cmd=updateEmailAddress&oldEmail=old@email.com&newEmail=new@email.com&api_password=cleartext

interface: GET/POST
usage: kayako.api.php?cmd=<command>..args..&api_password=<api_password>
Availble commands:
cmd=updateEmailAddress
a1=oldEmail
a2=newEmail

cmd=changePassword
a1=email
a2=newpassword

cmd=deleteUser
a1=email

cmd=registerUser
a1=email
a2=userpassword
a3=fullname

any comments will be appriciated.
p.s its a proof of concept example, use on your own responsibility only.

thanks