How to collects accounts and permissions from web service (rest api)

Hi,

we need to collect accounts and permissions from Dahua App, wich provides a REST API for integration. First we consume an authorization method that return us a token then this token is used for the method getAccounts an getPermissions. In the option Datasource/Application we didn't find a custom rest api call, ¿how can we do this collection?

thanks in advance.