Example #1
0
    public void AutoConnectToServer(CONNECT_NAME _connectName, Dictionary <string, string> tempDic = null, GameObject target = null)
    {
        //NetworkManager.DebugLog(UserInfoManager.instance.user_No);
        //if (UserInfoManager.instance.user_No != 1000000001)
        {
            //Member member = SyncManager.instance.GetMember();
            switch (_connectName)
            {
            case CONNECT_NAME.CHECK_FRIENDS_STAGE:
                //RESTClient.Api("friend/stage/last/info/" + "적당한값" + "/" + "적당한값", HTTPMethod.GET, (r) =>
                //{
                //}, tempDic);

                //string tempQuery = basePath + "/posts";
                string tempQuery = "/posts";


                /*
                 * string recv = string.Empty;
                 * RESTClient.JsonApi(tempQuery, recv, (r) =>
                 * {
                 *  Debug.Log(r.StatusCode);
                 *  Debug.Log(r.Text);
                 *  int a = 0;
                 * });
                 */



                RESTClient.Api(tempQuery, HTTPMethod.GET, (r) =>
                {
                    Debug.Log(r.StatusCode);
                    Debug.Log(r.Text);
                    int a = 0;
                }, tempDic);

                break;
            }
        }
    }