Back to Collection Items
// This example assumes the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
Dim http As New Chilkat.Http
Dim success As Boolean
Dim queryParams As New Chilkat.JsonObject
success = queryParams.UpdateString("login","CoupaSam1")
// Adds the "Authorization: Bearer <access_token>" header.
http.AuthToken = "<access_token>"
Dim resp As Chilkat.HttpResponse
resp = http.QuickRequestParams("GET","https://domain.com/users/",queryParams)
If (http.LastMethodSuccess = False) Then
System.DebugLog(http.LastErrorText)
Return
End If
System.DebugLog(Str(resp.StatusCode))
System.DebugLog(resp.BodyStr)
Curl Command
curl -G -d "login=CoupaSam1"
-H "Authorization: Bearer <access_token>"
https://domain.com/users/
Postman Collection Item JSON
{
"name": "Retrieve User by login",
"request": {
"method": "GET",
"header": [
],
"url": {
"raw": "{{URL}}/users/?login=CoupaSam1",
"host": [
"{{URL}}"
],
"path": [
"users",
""
],
"query": [
{
"key": "login",
"value": "CoupaSam1"
}
]
}
},
"response": [
]
}