 Brent
|
Any chance this issue has been resolved?
|
 Jason
|
I just stumbled onto this thread while trying to debug the issue described (no products returned and a “401 not authorized” response from BC).
This issue appears to be related to the release of v2 of the BC API (see: http://www.bigcommerce.com/ecommerce-blog/api-v2-beta-requests-closed-will-be-available-to-everyone-shortly/), which happened late Oct/early Nov 2011.
I didn’t have v1 API docs handy so I can’t be positive, but it appears at least the following changes occurred between v1 and v2 of the API:
* Authentication is performed via the Authentication header (v2) using base64 encoding of the username/api token rather than sending unencoded in the body of the request (v1)
* The products list request is performed via GET (v2) rather than POST (v1)
* Content type header is required (v2) so the API knows how to return the data (JSON vs XML)
* Changes in the response structure occurred between v2 and v1.
Taking into account the above, I was able to modify the plugin to authenticate and retrieve products properly, however additional changes are needed to make the plugin fully functional.
Jason
[email protected]
http://washmomedia.com
|