Welcome, Guest
Username: Password: Remember me

TOPIC: Consuming RemoteControl 2 API using C#

Consuming RemoteControl 2 API using C# 9 months 2 weeks ago #97834

  • madflow
  • madflow's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
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);
The administrator has disabled public write access.

Consuming RemoteControl 2 API using C# 9 months 2 weeks ago #97841

  • mdekker
  • mdekker's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 340
  • Thank you received: 68
  • Karma: 38
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
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.133 seconds
Donation Image