Subversion Repositories SmartDukaan

Rev

Rev 17242 | Rev 18156 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17242 Rev 17243
Line 204... Line 204...
204
        url  = "https://affiliate-api.flipkart.net/affiliate/report/orders/detail/json?startDate=%s&endDate=%s&status=%s&offset=0"
204
        url  = "https://affiliate-api.flipkart.net/affiliate/report/orders/detail/json?startDate=%s&endDate=%s&status=%s&offset=0"
205
            
205
            
206
        for status in statuses:
206
        for status in statuses:
207
            nextUrl = url%(startDate, endDate, status)
207
            nextUrl = url%(startDate, endDate, status)
208
            while nextUrl:
208
            while nextUrl:
209
                nextUrl=''
-
 
210
                req = urllib2.Request(nextUrl)
209
                req = urllib2.Request(nextUrl)
-
 
210
                nextUrl=''
211
                req.add_header('Fk-Affiliate-Id', 'saholic1g')
211
                req.add_header('Fk-Affiliate-Id', 'saholic1g')
212
                req.add_header('Fk-Affiliate-Token', 'a757444e260c46be8c4aeb20352246ac')
212
                req.add_header('Fk-Affiliate-Token', 'a757444e260c46be8c4aeb20352246ac')
213
                resp = urllib2.urlopen(req)
213
                resp = urllib2.urlopen(req)
214
                resString = json.loads(resp.read())
214
                resString = json.loads(resp.read())
215
                orderList = resString["orderList"]
215
                orderList = resString["orderList"]