Bienvenue, Invité
Nom d'utilisateur : Mot de passe : Se souvenir de moi

SUJET : Consuming RemoteControl 2 API using C#

Consuming RemoteControl 2 API using C# il y a 1 an 1 mois #97834

  • madflow
  • Portrait de madflow
  • Hors ligne
  • Fresh Lemon
  • Messages : 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);
L'administrateur a désactivé l'accès en écriture pour le public.

Consuming RemoteControl 2 API using C# il y a 1 an 1 mois #97841

  • mdekker
  • Portrait de mdekker
  • Hors ligne
  • LimeSurvey Team
  • Messages : 341
  • Remerciements reçus 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
L'administrateur a désactivé l'accès en écriture pour le public.
Modérateurs: ITEd
Temps de génération de la page : 0.125 secondes
Donation Image