question

whitershores avatar image
whitershores asked

SimpleGetCall implementation?

I was following the entity quickstart tutorial here:

https://docs.microsoft.com/en-us/gaming/playfab/features/data/entities/quickstart

But as it turns out, in the C# SDK, the PlayFabHttp.SimpleGetCall / SimplePutCall methods are not implemented.

One of the PlayFab tech's suggested in another thread that we do this ourselves:

https://community.playfab.com/questions/37386/playfabhttp-does-not-contain-a-definition-for-simp.html

Well, I would like to, but I am not sure what I would be implementing, and how that should interface with the rest of the PlayFab API. Can someone tell me, or perhaps give an example that I could follow?

sdksdata
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Sarah Zhang avatar image
Sarah Zhang answered

For your case, please navigate to this Github page -- https://github.com/PlayFab/CSharpSDK to download the source code of PlayFab C# SDK first. Then you can find this file -- PlayFabSysHttp.cs in the project. There is an implementation of DoPost online 14. You can duplicate it twice, modify the Task names to DoGet and DoPut. Then please modify the “_client.PostAsync(fullUrl, postBody)” to “_client.GetAsync(fullUrl)” and “_client.PutAsync(fullUrl,postBody)” to do initial implementation of these two Tasks.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.