I have a rest-api running on a pc that is physically connected to my Peplink Balance 310 5G. I am able to send requests to this rest-api using InTouch over the browser.
Now I am wondering if it’s also possible to send requests to this rest-api over InTouch programmatically (not using the browser).
I assume the most difficult part is authentication. Once I am able to authenticate to InTouch using postman or code, I should be able to send requests to my rest-api.
Thus far I have been able to obtain a oath2 access token via InControl 2 API:
InControl 2 API Documentation - Peplink
With the token I am able to successfully run authenticated requests such as:
https://api.ic.peplink.com/rest/o?access_token=[ACCESS_TOKEN]
Now I don’t really know how to proceed. Is what I am trying to achieve even possbile, or are InTouch devices only to be communicated with via Browser?