Get Orders with page=2&limit=1000 getting 1st page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • QuickBooksDev
    Junior Blueparker
    • Oct 2014
    • 15

    #1

    Get Orders with page=2&limit=1000 getting 1st page

    We are using VB.2010 to get orders.

    The program will attempt to get all the orders in a loop.

    There are only 6 orders in the system.

    For MyPageCount = 1 to 99999
    MyURL = vb.Replace(vb.Replace(MyBaseURL,"%page%",MyPageCou nt),"%limit%",1000)
    MyWebRequest = WebRequest.Create(MyURL)
    MyWebRequest.Credentials = New NetworkCredentials(pUser,pWD)
    .....
    MyResponse1PageStr = readStream.ReadToEnd()
    next

    But even though the URL has page=2 the response is the same as the first.

    I was expecting
    error": {
    "code": 404,
    "phrase": "Not Found",
    "message": "Resource not found"

    Help Please!
    www.AaaTeX.com
    QuickBooks Add-ons and custom programming
  • QuickBooksDev
    Junior Blueparker
    • Oct 2014
    • 15

    #2
    PLEASE IGNORE. Wrong URL was used.
    www.AaaTeX.com
    QuickBooks Add-ons and custom programming

    Comment

    Working...