Consuming RemoteControl 2 API using C#

More
4 years 1 month ago #97834 by madflow
madflow created the topic: Consuming RemoteControl 2 API using C#
I have got JSON_RPC service.
I had added the code from bitcoin.stackexchange.com/questions/5810...json-rpc-api-using-c which provides the method to call rpc service.
A detailed approach is provided at en.bitcoin.it/API_tutorial_(JSON-RPC)#.NET_ (C_

But still no data is returned by the get_session_key service. Tried both the encrypted password and the the actual password. But no luck.
string[] strobj = { "Admin", "XYZ" };
string method = "get_session_key";
JObject joe = new JObject();
joe=InvokeMethod(method, strobj);

Please Log in to join the conversation.

More
4 years 1 month ago #97841 by mdekker
mdekker replied the topic: Consuming RemoteControl 2 API using C#
From what i read the content type is wrong. For the service to work it needs to be application/json instead of application/json-rpc

On bitcoin.stackexchange.com/questions/5810...json-rpc-api-using-c is the code for the InvokeMethod, you should try to change that.

Good luck! If you happen to get it working, please be so kind to add some example code to our wiki at manual.limesurvey.org/RemoteControl_2_API it might help others to get started.

---
Menno Dekker

Please Log in to join the conversation.

Did you already participate in our customer survey?

Don't miss your chance for great prices.

Please click here to participate:

Start now

Start now!

Just create your account and start using Limesurvey today.

Register now