Mailkitchen Webservices documentation

Mailkitchen invites you to use Webservices to manage your databases, campaigns, statistical feedback, etc. Comprehensive documentation is presented here, offering the functions needed to use your account (create a MailKitchen account if you do not already have one). New functionalities will be added on a regular basis and details of these will be provided here (please do not hesitate to let us know of any ideas you may have by filling out our ideas box form)

Description Method : UpdateSubscriberList

UpdateSubscriberList function allows to update the informations of a mailing list.

  • Syntax

    $ws->UpdateSubscriberList( id, name, token )
  • Parameters

    • id (integer) Subscriber list id to update
    • name (string) Subscriber list new name
    • token (string) [Optional] Token from authentification
  • Return

    • Return subscriber list definition array
    • Type : array
    • [Parameters]
      • id(integer) : subscriber list's id
      • name(string) : subscriber list name
      • nb_member(integer) : subscriber list member number
  • Code exemple

    <?php
    $login = 'MyLogin';
    $password = 'MyPassword';
    try {
     
    	$ws = new SoapClient(
    			"http://webservices.mailkitchen.com/server.wsdl",
    			array('trace' => 1, 'soap_version'   => SOAP_1_2)
    	);
    	$token = $ws->Authenticate($login, $password);
     
    	$SubscriberList = $ws->UpdateSubscriberList(42,'newName');
    	echo 'Successfull subscriber list rename to : ' . $SubscriberList['name'];
     
    }
    catch (SoapFault $exception) { 
    	header('Content-Type: text/plain; charset: utf-8');
    	echo $exception->faultcode . ' : ' . $exception->getMessage();
    }
    ?>