Jump to content

Sugik Bangil

Members
  • Số lượng nội dung

    7
  • Đã tham gia

  • Lần ghé thăm cuối

Cộng đồng

1 Neutral

Khách vừa ghé thăm

Khách vừa ghé thăm đã bị tắt và không được hiển thị tới những người dùng khác.

  1. enter what cookies? instead of being saved when we successfully logged in. because I only use HTTPRequest once. sorry if wrong, I am still a newbie. and this is my code. is there something wrong? thanks before private void CheckoutShopee(string ShopID, string ModleID, string ItemID, string ItemGrupID, string PromID, string Price) { string DataPost = @"{ ""free_shipping_voucher_info"": { ""free_shipping_voucher_code"": null, ""free_shipping_voucher_id"": 0 }, ""platform_vouchers"": [], ""selected_shop_order_ids"": [ { ""item_briefs"": [ { ""add_on_deal_id"": null, ""applied_promotion_id"": " + PromID + @", ""cart_item_change_time"": " + TimeStampNow() + @", ""is_add_on_sub_item"": false, ""item_group_id"": " + ItemGrupID + @", ""itemid"": " + ItemID + @", ""modelid"": " + ModleID + @", ""offerid"": null, ""price"": " + Price + @", ""quantity"": 1, ""status"": 1 } ], ""shop_vouchers"": [], ""shopid"": " + ShopID + @" } ], ""use_coins"": false }"; request.Referer = "https://shopee.co.id/cart"; request.AddHeader("x-csrftoken", Csrf_Token); request.AddHeader("x-requested-with", "XMLHttpRequest"); request.AddHeader("x-shopee-language", "id"); request.AddHeader("x-api-source", "pc"); HttpResponse Rs = request.Post("https://shopee.co.id/api/v4/cart/checkout", DataPost, "application/json"); rtbLog.Text += Rs.ToString() + Environment.NewLine + Environment.NewLine; }
  2. no problem bro. now I can log in with OTP. but I have a new problem, how can I be able to checkout successfully bro. Can you help me.
  3. how to turn off OTP. my account is like the picture above. but still asks for OTP.
  4. the result is still the same bro... I have tried with another account... but still the same... ------------------------------------------------------------------------------------ Ghép bài ------------------------------------------------------------------------------------ oh yeah bro. shopee on vn does not need otp? like this...
  5. hiii bro. i'm newbie from indonesia. string UserName = "mbuatank"; string Password = "Kodiok2021"; HttpRequest request = new HttpRequest() { UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36", Cookies = new CookieDictionary(), }; HttpResponse response = request.Get("https://shopee.co.id/buyer/login"); string KetQua = response.ToString(); string Password_Hash = GetSha256(CreateMD5(Password).ToLower()); Csrf_Token = RandomString(32); request.Cookies.Add("csrftoken", Csrf_Token); request.Referer = "https://shopee.co.id/"; request.AddHeader("x-csrftoken", Csrf_Token); request.AddHeader("x-api-source", "pc"); request.AddHeader("x-shopee-language", "id"); request.AddHeader("x-requested-with", "XMLHttpRequest"); response = request.Get("https://shopee.co.id/buyer/login"); response.None(); request.Referer = "https://shopee.co.id/buyer/login/"; request.AddHeader("x-csrftoken", Csrf_Token); request.AddHeader("x-api-source", "pc"); request.AddHeader("x-shopee-language", "id"); request.AddHeader("x-requested-with", "XMLHttpRequest"); string Data = @"{""username"":""" + UserName + @""",""password"":""" + Password_Hash + @""",""support_whats_app"":true}"; response = request.Post("https://shopee.co.id/api/v2/authentication/login/", Data, "application/json"); KetQua = response.ToString(); richTextBox1.Text = KetQua + Environment.NewLine + Environment.NewLine; request.Referer = "https://shopee.co.id/user/account/"; request.AddHeader("x-api-source", "pc"); request.AddHeader("x-shopee-language", "id"); request.AddHeader("x-requested-with", "XMLHttpRequest"); response = request.Get("https://shopee.co.id/api/v2/user/profile/get/"); KetQua = response.ToString(); richTextBox1.Text += KetQua; what's wrong with my code bro? thx.
×
×
  • Create New...