Java SDK change log.

 

 

Version 3.2.2 - 24 Jan 2019

Version 3.2.1 - 22 Mar 2016

Version 3.2.0 - 01 Nov 2015

Version 3.1.3 - 08 Jun 2015

Version 3.1.2 - 28 Apr 2015

Version 3.1.1 - 25 Nov 2014

Version 2.15.5 - 10 Nov 2013

 

Version 2.15.4 - 09 Sep 2013

 

Version 2.15.3 - 22 Apr 2013

 

Version 2.15.2 - 06 Nov 2012

 

Version 2.15.1 - 28 Aug 2012

 

Version 2.15 - 17 Apr 2012

 

Version 2.14.1 - 17 Oct 2011

Enabled GZIP compression.

 

Version 2.13.4.1 - 28 Aug 2011

 

Version 2.13.4 - 9 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.

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

GSDictionary 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");

           

GSDictionary[] mediaItems = new GSDictionary[1];

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

GSRequest 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



// Sending 'socialize.publishUserAction' request

GSResponse response = request.send();

 

New Code (using GSObject and GSArray):

// Publish User Action



// Defining the userAction parameter

GSObject 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");

			

GSArray 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

GSRequest 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



// Sending 'socialize.publishUserAction' request

GSResponse response = request.send(); 

Version 2.13.1 - 29 June 2011

Version 2.13 - 26 June 2011