I am trying to use an existing HTTP API to grab some user information. The HTTP URL that I have works great.
I am trying to understand how I would use this inside of a button on XPages -- what I mean is that I am not sure what to use -- Link, Button, etc. -- to call this inside the code and parse the return information which will populate fields on the document.
I have looked at the Name Picker in the Extension Library, but I am not sure if this will work. It seems (since I am still learning XPages) that I am limited to SSJS on a button. I have never used JavaScript with an API, so I am not sure how to handle.
It would be something like this:
1. Open the URL (http://www.myAPI.com/thisAPI?ID=1234)
2. Grab what is displayed (since this opens a web page which is not what I want to do) inside the code
3. Parse the info
4. Populate the fields on the document
Any examples, links, etc. would be a great help -- thanks!