API Call

This forum is for eXpress++ general support.
Message
Author
User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: API Call

#21 Post by rdonnay »

The lastest build of Xbase++ 2.0 (Build 742) contains a new function that I requested from Alaska Software.

The name of the function is SetLoadFromUrlHeader().
This may be what you need if the API requires a header.
curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: Basic dGZsbzA2YzpMTGJCUnYyTFNkTnJUdkZlbG85M2VnPT0=' -d '
SetLoadFromURLHeader('Content-Type','application/json')
SetLoadFromURLHeader('Accept','application/json')
SetLoadFromURLHeader('Authorization','Basic')

LoadFromUrl(cUrl)
The eXpress train is coming - and it has more cars.

Post Reply