Chilkat Online Tools

Classic ASP / PrestaShop Webservice Demo Resource / Get all articles

Back to Collection Items

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
' This example assumes the Chilkat API to have been previously unlocked.
' See Global Unlock Sample for sample code.

set http = Server.CreateObject("Chilkat_9_5_0.Http")

http.BasicAuth = 1
http.Login = "{{webservice_key}}"
http.Password = "password"

set sbResponseBody = Server.CreateObject("Chilkat_9_5_0.StringBuilder")
success = http.QuickGetSb("https://localhost:8080/api/articles",sbResponseBody)
If (success = 0) Then
    Response.Write "<pre>" & Server.HTMLEncode( http.LastErrorText) & "</pre>"
    Response.End
End If

Response.Write "<pre>" & Server.HTMLEncode( "Response status code = " & http.LastStatus) & "</pre>"
Response.Write "<pre>" & Server.HTMLEncode( sbResponseBody.GetAsString()) & "</pre>"

%>
</body>
</html>

Curl Command

curl -X GET
	-u '{{webservice_key}}:password'
https://localhost:8080/api/articles

Postman Collection Item JSON

{
  "name": "Get all articles",
  "request": {
    "method": "GET",
    "header": [
    ],
    "url": {
      "raw": "{{webservice_url}}/api/articles",
      "host": [
        "{{webservice_url}}"
      ],
      "path": [
        "api",
        "articles"
      ]
    }
  },
  "response": [
  ]
}