Thiên Chi Kiều Nữ 959 Đã viết 3/02/2021 8 hours ago, Sugik Bangil said: how to turn off OTP. my account is like the picture above. but still asks for OTP. i can not remember...but maybe it was in . Your picture same my pictue ... so website still required OTP ..maybe your shopee website ... it maybe use some trick..but i dont know that trick ..so sorry Trích dẫn Chia sẻ bài đăng này Link tới bài viết Share on other sites
Sugik Bangil 1 Đã viết 4/02/2021 (edited) 11 hours ago, Thiên Chi Kiều Nữ said: i can not remember...but maybe it was in . Your picture same my pictue ... so website still required OTP ..maybe your shopee website ... it maybe use some trick..but i dont know that trick ..so sorry 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. Edited 4/02/2021 by Sugik Bangil 1 Trích dẫn Chia sẻ bài đăng này Link tới bài viết Share on other sites
Vũ Công Hào 0 Đã viết 4/02/2021 (edited) Các bác cho e hỏi cái cơ chế đăng nhập shopee mà dùng cookie là như nào nhỉ? Nhóm m có bài nào nói về cái đó ko. Cho e xin vs. E tìm mãi ko thấy Edited 4/02/2021 by Vũ Công Hào E miêu tả cho rõ câu hỏi thôi :) Trích dẫn Chia sẻ bài đăng này Link tới bài viết Share on other sites
Thiên Chi Kiều Nữ 959 Đã viết 4/02/2021 3 hours ago, Vũ Công Hào said: Các bác cho e hỏi cái cơ chế đăng nhập shopee mà dùng cookie là như nào nhỉ? Nhóm m có bài nào nói về cái đó ko. Cho e xin vs. E tìm mãi ko thấy Bạn xem ví dụ thứ 3 hoặc post thứ 2 trong bài này nhé. Quote nhập cookie vào và gửi request đi. Trích dẫn Chia sẻ bài đăng này Link tới bài viết Share on other sites
Sugik Bangil 1 Đã viết 4/02/2021 26 minutes ago, Thiên Chi Kiều Nữ said: Bạn xem ví dụ thứ 3 hoặc post thứ 2 trong bài này nhé. nhập cookie vào và gửi request đi. 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; } Trích dẫn Chia sẻ bài đăng này Link tới bài viết Share on other sites
Thiên Chi Kiều Nữ 959 Đã viết 4/02/2021 1 hour ago, Sugik Bangil said: 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; } this quote i reply for @Vũ Công Hào, not for you ... You need screen shot data in Request Header .. and show your error .. i still dont know where you error.. Trích dẫn Chia sẻ bài đăng này Link tới bài viết Share on other sites
Sugik Bangil 1 Đã viết 4/02/2021 1 hour ago, Thiên Chi Kiều Nữ said: this quote i reply for @Vũ Công Hào, not for you ... You need screen shot data in Request Header .. and show your error .. i still dont know where you error.. like this bro? Trích dẫn Chia sẻ bài đăng này Link tới bài viết Share on other sites
Thiên Chi Kiều Nữ 959 Đã viết 5/02/2021 20 hours ago, Sugik Bangil said: like this bro? I have code checkout shopee write by python, you can using it to transfer to c# :D : if still error, you need show your code =.='' ...i still dont have your error code. Trích dẫn Chia sẻ bài đăng này Link tới bài viết Share on other sites
Đỗ Viết Hùng 0 Đã viết 12/02/2021 vừng ơi mở ra Trích dẫn Chia sẻ bài đăng này Link tới bài viết Share on other sites
Tư Nguyễn 2 Đã viết 21/02/2021 Bác nào giúp em cái vụ đăng sản phẩm shopee với :( Trích dẫn Chia sẻ bài đăng này Link tới bài viết Share on other sites
hungnd103 0 Đã viết 21/02/2021 thanks bạn Trích dẫn Chia sẻ bài đăng này Link tới bài viết Share on other sites
Thiên Chi Kiều Nữ 959 Đã viết 21/02/2021 6 hours ago, Tư Nguyễn said: Bác nào giúp em cái vụ đăng sản phẩm shopee với :( hihi mỵ ko có cửa hàng...chả đăng đc sản phẩm :v 1 Trích dẫn Chia sẻ bài đăng này Link tới bài viết Share on other sites
Tư Nguyễn 2 Đã viết 21/02/2021 3 giờ trước, Thiên Chi Kiều Nữ said: hihi mỵ ko có cửa hàng...chả đăng đc sản phẩm :v Hóng cao nhân vào giúp :) Trích dẫn Chia sẻ bài đăng này Link tới bài viết Share on other sites
sonnh 0 Đã viết 10/03/2021 On 4/9/2020 at 11:24, Đoàn Minh Tâm said: mình cũng gặp tình trạng như bạn. cái chuỗi phía sau if-none-match-: 55b03-af4ea139617075b18fc3f53eb090a0e9 => af4ea139617075b18fc3f53eb090a0e9 : ko biết tạo từ đâu. Phần này có ai có giải pháp chưa ạ. Em cũng gặp tình huống tương tự :( Trích dẫn Chia sẻ bài đăng này Link tới bài viết Share on other sites
Cong 1 Đã viết 11/03/2021 (edited) On 10/3/2021 at 10:18, sonnh said: Phần này có ai có giải pháp chưa ạ. Em cũng gặp tình huống tương tự :( On 4/9/2020 at 11:24, Đoàn Minh Tâm said: mình cũng gặp tình trạng như bạn. cái chuỗi phía sau if-none-match-: 55b03-af4ea139617075b18fc3f53eb090a0e9 => af4ea139617075b18fc3f53eb090a0e9 : ko biết tạo từ đâu. Tạo bừa bạn ơi, tôi cũng gặp tình trạng tương tự khi ko có mã thì nó trả về sản phẩm ảo, làm 1 function gen 1 cái mã loằng ngoằng vào cho đẹp chứ thực ra bạn nhét cái gì vào nó cũng trả về sản phẩm thật, miễn đừng để trường if-none-match trống. function genIfNoneMatch(len) { const hex = '0123456789ABCDEF'; let output = ''; for (let i = 0; i < len; ++i) { output += hex.charAt(Math.floor(Math.random() * hex.length)); } return output.toLowerCase(); } Edited 11/03/2021 by Cong 1 Trích dẫn Chia sẻ bài đăng này Link tới bài viết Share on other sites