You shouldn't need a desktop license to do this specific activity of publishing datasources. The REST API runs on the server and you should be able to connect to it via any programming language of your choosing.