Run WebAPI Onload

Context:

I have an integration associated with a webapi. Requests are successfully submitted and received on button click. 

Instead of the button click, I want to populate a paging grid using the webapi results on page load.

Tried placing the integration call in the "onload" and "with", however the webapi call doesn't seem to be triggered at all.

Disclaimer: I'm a newbie and there may be a simpler way to accomplish what I want.. simply populating a grid using an api call without user intervention.

  Discussion posts and replies are publicly visible