Chilkat Online Tools

Foxpro / Coupa Postman Collection - OAuth - Master / Get budget line adjustments for budget line

Back to Collection Items

LOCAL loHttp
LOCAL lnSuccess
LOCAL loSbResponseBody

* This example assumes the Chilkat API to have been previously unlocked.
* See Global Unlock Sample for sample code.

loHttp = CreateObject('Chilkat_9_5_0.Http')

* Adds the "Authorization: Bearer <access_token>" header.
loHttp.AuthToken = "<access_token>"

loSbResponseBody = CreateObject('Chilkat_9_5_0.StringBuilder')
lnSuccess = loHttp.QuickGetSb("https://domain.com/budget_lines/:budget_line_id/budget_line_adjustments",loSbResponseBody)
IF (lnSuccess = 0) THEN
    ? loHttp.LastErrorText
    RELEASE loHttp
    RELEASE loSbResponseBody
    CANCEL
ENDIF

? "Response status code = " + STR(loHttp.LastStatus)
? loSbResponseBody.GetAsString()

RELEASE loHttp
RELEASE loSbResponseBody

Curl Command

curl -X GET
	-H "Authorization: Bearer <access_token>"
https://domain.com/budget_lines/:budget_line_id/budget_line_adjustments

Postman Collection Item JSON

{
  "name": "Get budget line adjustments for budget line",
  "request": {
    "method": "GET",
    "header": [
    ],
    "url": {
      "raw": "{{URL}}/budget_lines/:budget_line_id/budget_line_adjustments",
      "host": [
        "{{URL}}"
      ],
      "path": [
        "budget_lines",
        ":budget_line_id",
        "budget_line_adjustments"
      ],
      "variable": [
        {
          "key": "budget_line_id",
          "value": "4670"
        }
      ]
    }
  },
  "response": [
  ]
}