예제 #1
0
    private static void searchForItemAndAddItemToCart(string itemCategory)
    {
        string itemUrl = PurchaseCurrentOutfit.getItemUrl(itemCategory);

        //Debug.Log(itemUrl);
        AddToCart.AddItemToCart(itemUrl);
    }
    void TestGUI()
    {
        GUI.Box(new Rect(10, 10, 100, 90), "Loader Menu");

        if (GUI.Button(new Rect(20, 40, 80, 20), "AddToCart"))
        {
            string itemID = "mu4wczjwheztkmdghaydgndemjsdmmruha4tsy3bmyywiytggzsdiojvgztgimld";
            AddToCart.AddItemToCart(itemID);

            //AddToCart.GetCartResponse(auth.access_token);
            //AddToCart.GetOrderId(auth.access_token);
            AddToCart.Purchase();

            //HttpWebResponse httpResponse = SendRequst(url,"POST",json);
            //Debug.Log(httpResponse.StatusCode);

            //Debug.Log(getResponseBody(httpResponse));
        }
    }