Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:

THEMA: Consuming RemoteControl 2 API using C#

Consuming RemoteControl 2 API using C# 1 Jahr 1 Monat her #97834

  • madflow
  • madflows Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 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);
Der Administrator hat öffentliche Schreibrechte deaktiviert.

Consuming RemoteControl 2 API using C# 1 Jahr 1 Monat her #97841

  • mdekker
  • mdekkers Avatar
  • OFFLINE
  • LimeSurvey Team
  • Beiträge: 341
  • Dank erhalten: 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
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Moderatoren: ITEd
Ladezeit der Seite: 0.142 Sekunden
Donation Image