I have started to develop an API for Oanda that can benefit the Zorro community. I have looked at the FXCMplugin.cpp file to have a template to start from.

I understand that I have to make a .dll in c++, the problem is that Oanda offers four types of APIs:

Rest, Java, FIX and MT4

From what I understand, Rest would be the way to go because I can use a c++ library that implements it. But Oanda uses OAuth to manage the authentication to their Rest API

http://developer.oanda.com/rest-live/api-comparison/#6

which implies redirecting the user to a webpage to make him/her enter credentials and then receiving an access token. How can I reconcile

BrokerLogin (char* User, char* Pwd, char* Type, char* Accounts): int

with OAuth??

The other alternative would be using Java API but is there a way to call a Java API function from C++?

I appreciate any help/guidance!!