Example #1
0
 private void OpenWidget_GetBasicAccessTokenCallback(BasicTokenRequest.Response result,
                                                     BasicTokenRequest.RequestParams request)
 {
     _basicAccessToken  = result.token;
     _basicRefreshToken = result.refreshToken;
     BasicWidget.Init(_basicAccessToken, _basicRefreshToken, _clientApi);
     BasicWidget.Open();
 }
Example #2
0
        private void GetBasicTokenCallback(BasicTokenRequest.Response response,
                                           BasicTokenRequest.RequestParams requestParams)
        {
            Debug.Log(string.Format(
                          "GetBasicAccessToken request completed. BasicAccessToken: {0} BasicRefreshToken: {1}", response.token,
                          response.refreshToken));

            _basicAccessToken.text  = response.token;
            _basicRefreshToken.text = response.refreshToken;
        }
Example #3
0
        private void OpenWidget_GetBasicAccessTokenCallback(BasicTokenRequest.Response result,
                                                            BasicTokenRequest.RequestParams request)
        {
            APITestGameModel model = new APITestGameModel();

            _basicAccessToken.text  = result.token;
            _basicRefreshToken.text = result.refreshToken;
            MarketWidget.Init(_basicAccessToken.text, _basicRefreshToken.text, _clientApi);
            MarketWidget.Open(model);
        }
Example #4
0
        private void MarketFlow_GetBasicAccessTokenCallback(BasicTokenRequest.Response result,
                                                            BasicTokenRequest.RequestParams request)
        {
            Debug.Log(string.Format(
                          "GetBasicAccessToken request completed. BasicAccessToken: {0} BasicRefreshToken: {1}", result.token,
                          result.refreshToken));

            _basicAccessToken  = result.token;
            _basicRefreshToken = result.refreshToken;

            _clientApi.GetMarketAccessToken(_basicAccessToken, _dMarketUserEmail, _dMarketUserPassword,
                                            MarketFlow_GetMarketAccessTokenCallback, OnErrorCallback);
        }