Author Topic: API Query Parameter  (Read 665 times)

ruedi

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
API Query Parameter
« on: December 21, 2017, 08:04:37 AM »
Hi,

I have thried to get data from a Shopware webshop with http.QuickGetStr in VB6.
The url in a browser like Chrome delivers exactly the right data. http.QuickGetStr only delivers data without the query parameters "?filter[0][property]=customerId&filter[0][value]=1".

https://[domain].com/api/orders/?filter[0][property]=customerId&filter[0][value]=1

In http.LastErrorText I always find the following status:
                statusCode: 400
                statusText: Bad Request

Are the reasons for this behavor

dev guy

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: API Query Parameter
« Reply #1 on: December 28, 2017, 03:42:33 PM »
Hi ruedi,

There could be many reasons for the 400 error. Please post the output from .LastErrorText and .SessionLogFilename to this thread so that we can help you.

ruedi

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: API Query Parameter
« Reply #2 on: January 10, 2018, 02:40:04 AM »
Hi dev guy

In the attachments are the outputs of LastErrorText and SessionLogFilename.