void WBSetUserStatus(UserWBStatus status) { string serverData; WebData wd = new WebData(); Dictionary <string, string> urlData; urlData = new Dictionary <string, string> { { "key", key }, { "method", "UpdateUserStatus" }, { "fbid", CoreUtility.Me.settings.myFBInfo.id }, { "userstatus", status.ToString().ToLower() } }; serverData = wd.GetDataAsString(_apiURL, timeout, method, urlData); MyDebug.Log("SetUserStatus:: >> " + serverData); }
void WBLogin() { string serverData; WebData wd = new WebData(); Dictionary <string, string> urlData; urlData = new Dictionary <string, string> { { "key", key }, { "method", "FacebookLogin" }, { "fbid", CoreUtility.Me.settings.myFBInfo.id }, { "fbaccesstoken", CoreUtility.Me.settings.myFBInfo.token }, { "platform", CoreUtility.Me.platform.ToLower() }, { "devicetoken", CoreUtility.Me.settings.pushToken } }; serverData = wd.GetDataAsString(_apiURL, timeout, method, urlData); MyDebug.Log("SetFBLogin :: >>" + serverData); }
void WBSetToken() { MyDebug.Log("Add Token Web Service Start"); string serverData; string userName = string.Empty; #if FBUNITYSDK userName = Utility.Me.Settings.myFBInfo.name; #endif userName = string.IsNullOrEmpty(userName) || userName.StartsWith("G_", System.StringComparison.OrdinalIgnoreCase) ? "Guest" : userName; WebData wd = new WebData(); Dictionary <string, string> urlData; urlData = new Dictionary <string, string> { { "key", key }, { "method", "AddDeviceToken" }, { "name", userName }, { "devicetoken", CoreUtility.Me.settings.pushToken }, { "platform", CoreUtility.Me.platform.ToLower() } }; serverData = wd.GetDataAsString(_apiURL, timeout, method, urlData); MyDebug.Log("WBAddToken :: >>" + serverData); }