Tuesday, March 12, 2019

PHP Toolkit 2012.2 > changePassword Sample Code

This provides a sample code to make a changePassword request using PHPToolkit 2012.2.  The article requires a basic understanding of PHP and Web Services to get this working.

     require_once './PHPToolkit/NetSuiteService.php';


     $service = new NetSuiteService();

     $changePw = new ChangePassword();
     $changePw->currentPassword = "testpassword111";
     $changePw->newPassword = "testpassword777";
     $changePw->newPassword2 = "testpassword777";

     $request = new ChangePasswordRequest();
     $request->changePassword = $changePw;

     $response = $service->changePassword($request);

No comments:

Post a Comment