| Line 77... |
Line 77... |
| 77 |
"flipkart"));
|
77 |
"flipkart"));
|
| 78 |
nameValuePairs.add(new BasicNameValuePair("username",
|
78 |
nameValuePairs.add(new BasicNameValuePair("username",
|
| 79 |
"flipkart-support@saholic.com"));
|
79 |
"flipkart-support@saholic.com"));
|
| 80 |
nameValuePairs.add(new BasicNameValuePair("password",
|
80 |
nameValuePairs.add(new BasicNameValuePair("password",
|
| 81 |
"076c27ee24d7596b06608a8ed2559f87"));
|
81 |
"076c27ee24d7596b06608a8ed2559f87"));
|
| - |
|
82 |
post.addHeader("Cookie","T=TI141147280750274359991498309202525657388536723248248488328249492067; __sonar=16983180403917152637; __gads=ID=c15eba68f7f44861:T=1411472817:S=ALNI_MYyU0QfJ923BqkcDhqFlRpZxMcA8w; cmp_id=hp_dotd_4_DOTDOnBajajMixerGrinder_Sep23.|1414064820638; S=d1t16GpsIdt0JTsYuFF%2FMaE7jTGYozxMXM5a3ktJD24TBohceobkUv8l4GDr4KNLkLs5BOgnhsqkZNQRh2Lzrx%2B77zQ%3D%3D; km_lv=x; __utma=19769839.1065606807.1411472808.1411472808.1411624009.2; __utmc=19769839; __utmz=19769839.1411472808.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); s_cc=true; s_sq=%5B%5BB%5D%5D; prd_day=2|1411645620637; s_ppv=21; SN=2.VI89D3B4F7B5534B3C9EADE3BBD925875A.SI05ED43E07EAF40E9B4F265F5F2B1074D.VS141162400679268773093.1411624676; VID=2.VI89D3B4F7B5534B3C9EADE3BBD925875A.1411624676.VS141162400679268773093; NSID=2.SI05ED43E07EAF40E9B4F265F5F2B1074D.1411624676.VI89D3B4F7B5534B3C9EADE3BBD925875A; connect.sid=s%3AaUlfUN00goYPkqRHXtAbM6Nh.EBDDk9%2F0rQDXGb%2B23IEJ4QgrAgKFpXU%2FLOjuQyxJo44; is_login=true; sellerId=m2z93iskuj81qiid; __utma=143439159.1617147053.1411568832.1411568832.1411624688.2; __utmb=143439159.17.10.1411624688; __utmc=143439159; __utmz=143439159.1411568832.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); _ga=GA1.2.1617147053.1411568832; _gat=1; kvcd=1411627978463; km_ai=m2z93iskuj81qiid; km_ni=m2z93iskuj81qiid; km_vs=1; km_uq=");
|
| - |
|
83 |
post.addHeader("User-agent", "Mozilla/4.0");
|
| - |
|
84 |
post.addHeader("Referer", "seller.flipkart.com");
|
| 82 |
post.setEntity(new UrlEncodedFormEntity(nameValuePairs,"utf-8"));
|
85 |
post.setEntity(new UrlEncodedFormEntity(nameValuePairs,"utf-8"));
|
| 83 |
HttpResponse response = client.execute(post);
|
86 |
HttpResponse response = client.execute(post);
|
| 84 |
rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
|
87 |
rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
|
| 85 |
String line = "";
|
88 |
String line = "";
|
| 86 |
Gson gson;
|
89 |
Gson gson;
|
| Line 95... |
Line 98... |
| 95 |
System.out.println(line);
|
98 |
System.out.println(line);
|
| 96 |
}
|
99 |
}
|
| 97 |
time = System.currentTimeMillis();
|
100 |
time = System.currentTimeMillis();
|
| 98 |
while(true){
|
101 |
while(true){
|
| 99 |
get_new = new HttpGet("https://seller.flipkart.com/dashboard/som/new_order_items?status=on_hold%2Capproved.payment_approved&sort=confirm_by_date&page="+i+"&page_size=100&_="+time);
|
102 |
get_new = new HttpGet("https://seller.flipkart.com/dashboard/som/new_order_items?status=on_hold%2Capproved.payment_approved&sort=confirm_by_date&page="+i+"&page_size=100&_="+time);
|
| - |
|
103 |
get_new.addHeader("Cookie","T=TI141147280750274359991498309202525657388536723248248488328249492067; __sonar=16983180403917152637; __gads=ID=c15eba68f7f44861:T=1411472817:S=ALNI_MYyU0QfJ923BqkcDhqFlRpZxMcA8w; cmp_id=hp_dotd_4_DOTDOnBajajMixerGrinder_Sep23.|1414064820638; S=d1t16GpsIdt0JTsYuFF%2FMaE7jTGYozxMXM5a3ktJD24TBohceobkUv8l4GDr4KNLkLs5BOgnhsqkZNQRh2Lzrx%2B77zQ%3D%3D; km_lv=x; __utma=19769839.1065606807.1411472808.1411472808.1411624009.2; __utmc=19769839; __utmz=19769839.1411472808.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); s_cc=true; s_sq=%5B%5BB%5D%5D; prd_day=2|1411645620637; s_ppv=21; SN=2.VI89D3B4F7B5534B3C9EADE3BBD925875A.SI05ED43E07EAF40E9B4F265F5F2B1074D.VS141162400679268773093.1411624676; VID=2.VI89D3B4F7B5534B3C9EADE3BBD925875A.1411624676.VS141162400679268773093; NSID=2.SI05ED43E07EAF40E9B4F265F5F2B1074D.1411624676.VI89D3B4F7B5534B3C9EADE3BBD925875A; connect.sid=s%3AaUlfUN00goYPkqRHXtAbM6Nh.EBDDk9%2F0rQDXGb%2B23IEJ4QgrAgKFpXU%2FLOjuQyxJo44; is_login=true; sellerId=m2z93iskuj81qiid; __utma=143439159.1617147053.1411568832.1411568832.1411624688.2; __utmb=143439159.17.10.1411624688; __utmc=143439159; __utmz=143439159.1411568832.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); _ga=GA1.2.1617147053.1411568832; _gat=1; kvcd=1411627978463; km_ai=m2z93iskuj81qiid; km_ni=m2z93iskuj81qiid; km_vs=1; km_uq=");
|
| 100 |
response = client.execute(get_new);
|
104 |
response = client.execute(get_new);
|
| 101 |
rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
|
105 |
rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
|
| 102 |
line = "";
|
106 |
line = "";
|
| 103 |
gson = new Gson();
|
107 |
gson = new Gson();
|
| 104 |
new_orders = (OrderItems) gson.fromJson(rd, OrderItems.class);
|
108 |
new_orders = (OrderItems) gson.fromJson(rd, OrderItems.class);
|
| Line 112... |
Line 116... |
| 112 |
}
|
116 |
}
|
| 113 |
i=1;
|
117 |
i=1;
|
| 114 |
time = System.currentTimeMillis();
|
118 |
time = System.currentTimeMillis();
|
| 115 |
while(true){
|
119 |
while(true){
|
| 116 |
get_conf = new HttpGet("https://seller.flipkart.com/dashboard/som/confirmed_order_items?status=approved.seller_approved&sort=confirm_by_date&page="+i+"&page_size=100&_="+time);
|
120 |
get_conf = new HttpGet("https://seller.flipkart.com/dashboard/som/confirmed_order_items?status=approved.seller_approved&sort=confirm_by_date&page="+i+"&page_size=100&_="+time);
|
| - |
|
121 |
get_new.addHeader("Cookie","T=TI141147280750274359991498309202525657388536723248248488328249492067; __sonar=16983180403917152637; __gads=ID=c15eba68f7f44861:T=1411472817:S=ALNI_MYyU0QfJ923BqkcDhqFlRpZxMcA8w; cmp_id=hp_dotd_4_DOTDOnBajajMixerGrinder_Sep23.|1414064820638; S=d1t16GpsIdt0JTsYuFF%2FMaE7jTGYozxMXM5a3ktJD24TBohceobkUv8l4GDr4KNLkLs5BOgnhsqkZNQRh2Lzrx%2B77zQ%3D%3D; km_lv=x; __utma=19769839.1065606807.1411472808.1411472808.1411624009.2; __utmc=19769839; __utmz=19769839.1411472808.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); s_cc=true; s_sq=%5B%5BB%5D%5D; prd_day=2|1411645620637; s_ppv=21; SN=2.VI89D3B4F7B5534B3C9EADE3BBD925875A.SI05ED43E07EAF40E9B4F265F5F2B1074D.VS141162400679268773093.1411624676; VID=2.VI89D3B4F7B5534B3C9EADE3BBD925875A.1411624676.VS141162400679268773093; NSID=2.SI05ED43E07EAF40E9B4F265F5F2B1074D.1411624676.VI89D3B4F7B5534B3C9EADE3BBD925875A; connect.sid=s%3AaUlfUN00goYPkqRHXtAbM6Nh.EBDDk9%2F0rQDXGb%2B23IEJ4QgrAgKFpXU%2FLOjuQyxJo44; is_login=true; sellerId=m2z93iskuj81qiid; __utma=143439159.1617147053.1411568832.1411568832.1411624688.2; __utmb=143439159.17.10.1411624688; __utmc=143439159; __utmz=143439159.1411568832.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); _ga=GA1.2.1617147053.1411568832; _gat=1; kvcd=1411627978463; km_ai=m2z93iskuj81qiid; km_ni=m2z93iskuj81qiid; km_vs=1; km_uq=");
|
| 117 |
response = client.execute(get_conf);
|
122 |
response = client.execute(get_conf);
|
| 118 |
rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
|
123 |
rd = new BufferedReader(new InputStreamReader(response.getEntity().getContent()));
|
| 119 |
line = "";
|
124 |
line = "";
|
| 120 |
gson = new Gson();
|
125 |
gson = new Gson();
|
| 121 |
conf_orders = (OrderItems) gson.fromJson(rd, OrderItems.class);
|
126 |
conf_orders = (OrderItems) gson.fromJson(rd, OrderItems.class);
|
| Line 709... |
Line 714... |
| 709 |
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd-HH:mm:ss");
|
714 |
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd-HH:mm:ss");
|
| 710 |
Calendar cal=GregorianCalendar.getInstance();
|
715 |
Calendar cal=GregorianCalendar.getInstance();
|
| 711 |
String emailFromAddress = "build@shop2020.in";
|
716 |
String emailFromAddress = "build@shop2020.in";
|
| 712 |
String password = "cafe@nes";
|
717 |
String password = "cafe@nes";
|
| 713 |
GmailUtils mailer = new GmailUtils();
|
718 |
GmailUtils mailer = new GmailUtils();
|
| 714 |
//String sendTo[] = new String[]{"manish.sharama@shop2020.in"};
|
719 |
//String sendTo[] = new String[]{"manish.sharma@shop2020.in"};
|
| 715 |
String sendTo[] = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
|
720 |
String sendTo[] = new String[]{ "sandeep.sachdeva@shop2020.in", "vikram.raghav@shop2020.in", "rajneesh.arora@shop2020.in",
|
| 716 |
"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
|
721 |
"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
|
| 717 |
"yukti.jain@shop2020.in","manish.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in","anikendra.das@shop2020.in"};
|
722 |
"yukti.jain@shop2020.in","manish.sharma@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in","anikendra.das@shop2020.in"};
|
| 718 |
try {
|
723 |
try {
|
| 719 |
logger.info("Before Sending Emails");
|
724 |
logger.info("Before Sending Emails");
|