Beispiel #1
0
        public void RequestToken(FacebookData.Post postData_, System.Action <FacebookData.Receive[]> callback_, System.Action <string> errorCallback_ = null)
        {
            string url = ".auth/login/googleplay";
            string postData;

            CloudBread.Request(CloudBread.MakeFullUrl(url), JsonUtility.ToJson(postData_), callback_, errorCallback_);
        }
Beispiel #2
0
        public void RequestToken(string access_token, Action <AzureZumoToken.Receive> callback, Action <string> errorCallback = null)
        {
            string url = CloudBread.Address + OAuth2Setting.FacebookRedirectAddress;

            Debug.Log(url);

            string postData = "{ \"access_token\" : \"" + access_token + " \"}";

            Debug.Log(postData);

            CloudBread.Request(url, postData, callback, errorCallback);
        }
        public void RequestToken(string id_token, string access_token, Action <AzureZumoToken.Receive> callback, Action <string> errorCallback = null)
        {
            string url = CloudBread.Address + ".auth/login/google";

//			string url = CloudBread.Address + OAuth2Setting.GoogleRedirectAddress;
            Debug.Log(url);

            string postData = "{ \"id_token\": \"" + id_token + "\",  \"access_token\" : \"" + access_token + " \"}";

            Debug.Log(postData);

            CloudBread.Request(url, postData, callback, errorCallback);
        }
Beispiel #4
0
        public void RequestUser(string access_token, Action <FacebookUserData> callback, Action <string> errorCallback = null)
        {
            string url = "https://graph.facebook.com/me?access_token=" + access_token;

            CloudBread.Request(url, null, callback, errorCallback);
        }