PHP SDK Change Log

Skip to end of metadata
Go to start of metadata

Version 2.15.8 - 01 Feb 2016

  • Fixed bug with proxy response header handling.

Version 2.15.6 - 08 May 2014

  • Bug fixes.

Version 2.15.5 - 10 Nov 2013

  • cacerts.pem (trusted CA store) is now required to send requests.
  • SDK is now packaged in a zip file containing cacerts.pem.

 

Version 2.15.4 - 09 Sep 2013

  • userKey - A new optional parameter in GSRequest constructor. A key of an admin user with extra permissions.
  • Bug fixes.

 

Version 2.15.3 - 22 Apr 2013

 

Version 2.15.2 - 06 Nov 2012

  • GSRequest.setAPIDomain - new method that provides the option to specify a data center  to be used for making API calls. For example: "eu1.gigya.com" for Europe data center. 

Version 2.15 - 10 Apr 2012

Version 2.13.4 - 11 Aug 2011

Note: This version is not backwards compatible. You may need to make minor changes in your code, if you are upgrading from a former version. Please follow the migration instruction below. Upgrading to this version is required, if you wish to integrate Gigya's Game Mechanics or the Gigya Cloud Storage platform.

  • GSDictionary class is deprecated, and is replaced by the following new classes:
  • GSObject - New class, used for passing parameters, for example when issuing requests or receiving response data.
  • GSArray - New class, used for passing Arrays, for example when issuing requests or receiving response data.

Migration Instruction

Search for all instances of GSDictionary class in your code. Replace each GSDictionary instance with GSObject, and each GSDictionary array with GSArray. For example:

Old Code (using GSDictionary):

// Publish User Action



// Defining the userAction parameter

$userAction = new GSDictionary();



$userAction->put("title", "This is my title");

$userAction->put("userMessage", "This is my user message");

$userAction->put("description", "This is my description");

$userAction->put("linkBack", "http://google.com");

			

$mediaItems = array();

$mediaItems[0] = new GSDictionary("{\"src\":\"http://www.f2h.co.il/logo.jpg\", \"href\":\"http://www.f2h.co.il\",\"type\":\"image\"}");



$userAction->put("mediaItems", $mediaItems); 



// Sending 'socialize.publishUserAction' request

$request = new GSRequest("PUT-YOUR-APIKEY-HERE", "PUT-YOUR-SECRET-KEY-HERE", "socialize.publishUserAction");

$request->setParam("userAction", $userAction); // set the "userAction" parameter

$request->setParam("uid", "PUT-UID-HERE");  // set the "uid" parameter to user's ID

$response = $request->send();

 

New Code (using GSObject and GSArray):

// Publish User Action



// Defining the userAction parameter

$userAction = new GSObject();



$userAction->put("title", "This is my title");

$userAction->put("userMessage", "This is my user message");

$userAction->put("description", "This is my description");

$userAction->put("linkBack", "http://google.com");

			

$mediaItems = new GSArray();

$mediaItems->add(new GSObject("{\"src\":\"http://www.f2h.co.il/logo.jpg\", \"href\":\"http://www.f2h.co.il\",\"type\":\"image\"}"));



$userAction->put("mediaItems", $mediaItems); 



// Sending 'socialize.publishUserAction' request

$request = new GSRequest("PUT-YOUR-APIKEY-HERE", "PUT-YOUR-SECRET-KEY-HERE", "socialize.publishUserAction");

$request->setParam("userAction", $userAction); // set the "userAction" parameter

$request->setParam("uid", "PUT-UID-HERE");  // set the "uid" parameter to user's ID

$response = $request->send();

 

Version 2.13 - 26 June 2011

  • When sending a request, if useHTTPS is set to 'true', the request is not signed and the secret key is passed instead - this saves CPU of calculating signature, since it's secured by HTTPS.