cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Gigya.Socialize .NET SDK vs. NuGet

bradplett
Member
0 Likes
797

Please forgive my ignorance: I am brand new to Gigya (though very experienced with .NET)

We have some very simple .NET (C#) code that we're trying to port from using the Gigya.Socialize SDK directly to using the NuGet package. I assumed the binaries would be essentially equivalent. The code appears to run perfectly, but the results are different. Here is the sample code:

GSResponse response = request.Send();
GSObject resObj = response.GetData();
GSArray results = resObj.GetArray("results");

With the SDK, "resObj" has a "Map" of 10, and the "GetArray" works like a charm.

However, with the NuGet, "resObj" has a "Map" of 8, "results" is not one of them, and the call to "GetArray" obviously throws an error. The underlying REST call has definitely succeeded, because "response.GetResponseText()" shows the json needed to get the array of results. Why the difference? How can I fix this? Any ideas?

Please note that this may well be documented somewhere already, but I was unable to find it, so if it is, feel free to point me to it. 🙂

Thanks in advance!

Accepted Solutions (0)

Answers (0)

Ask a Question