Questions tagged [json-rpc]

JSON-RPC is a standard JSON data-format based (r)emote (p)rocedure (c)all protocol.

See http://json-rpc.org/ for specification and implementations for various languages.

JSON stands for JavaScript Object Notation. It is a text-based lightweight data-interchange format. See http://www.json.org/ for details.

RPC stands for remote procedure call, which is a family of protocols. See the Wikipedia article Remote procedure call for origins, current variations and applications.

673 questions
0
votes
1 answer

resend your request with the updated header Transmission in Swift

I've this code to take the X-Transmission-Session-Id but now i need to resend the request with the updated header. function takeXTransmissionSessionId( ){ let urls = NSURL(string: "\(url)") let task =…
Nas Jmh
  • 9
  • 4
0
votes
1 answer

How to get confirmed (5 confirmations) bitcoin wallet balance via JSON RPC using PHP?

I'm writing a script that will send funds that have been wired into a certain bitcoin wallet to another address using PHP and the JSON RPC API. So far I've got something like this: $x = '0.1'; // <- just redirect coins when the wallet balance is…
pushl
  • 29
  • 4
0
votes
1 answer

How to register function in a class rather than one by one use jsonrpclib by python?

In jsonrpclib docs, example is register function one by one as this: def foo(): pass def bar(): pass server = SimpleJSONRPCServer(("localhost", 8000)) server.register_multicall_functions() server.register_function(foo,…
Wilence
  • 343
  • 2
  • 3
  • 8
0
votes
1 answer

Kodi(XBMC): Using Files.PrepareDownload (Invalid params. error)

when i try to get fanart url with Files.PrepareDownload, it responses error. first I get movies with VideoLibrary.GetMovies: http:///jsonrpc?request={"jsonrpc": "2.0", "params": {"sort": {"order": "ascending", "method": "title"}, "properties":…
hrrs
  • 68
  • 8
0
votes
1 answer

Erlang server connection pool

I have a service that is in Erlang. I am trying to connect to the service. However sometimes the connection creation gets timed out. I believe this might be because the service might be busy. This is periodic, on re-executing my program some time…
alwaysAStudent
  • 2,110
  • 4
  • 24
  • 47
0
votes
0 answers

No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is not allowed access. Response HTTP 401

var url = "http://www.api.sitehoover.com/api/"; var request = {}; request.id = "1"; request.method = "add_page"; request.params = "a7eede94cdc5e5aa77bd8db969ab0089"; request.params.folder_oid = "9"; request.params.url =…
Anuj Balan
  • 7,629
  • 23
  • 58
  • 92
0
votes
1 answer

Trouble with API based on JSON-RPC 2.0

I am trying to connect to an API which is based on JSON-RPC 2.0. As i am new to this im not sure if im coding this correctly because all I am recieving is an error. Can anyone give me a brief explanation on how to connect to API in PHP?
Yaseen AS
  • 3
  • 3
0
votes
1 answer

Is there any JSON-RPC implementation in C++ that is transport-agnostic?

I am currently looking for a JSON-RPC library that implements the 2.0 specification and is, or at least can be easily adapted to be, transport-agnostic, implemented in c++ and have as few dependencies as possible. In my search for it, I already…
tstark81
  • 478
  • 3
  • 13
0
votes
1 answer

Go bug when marshalling data using JSON-RPC - am I being dumb?

So I'm working with code similar to the following and can't get the RPC to work in the FooHolder where it holds objects that meets an interface. I might be missing something but it looks like it should work - using the reflect package it correctly…
17Twenty
  • 287
  • 1
  • 4
  • 9
0
votes
1 answer

Creating JSON RPC requests in Java with parameters which have parameters

The title is a bit messy, but what I'm trying to do is create a JSON RPC request which looks like this: { "method":"site/method", "id":1, "filter":{ "name":"person" } } I'm having trouble finding a way to do that. I'm using…
SlashThingy
  • 177
  • 2
  • 12
0
votes
1 answer

JSON-RPC 2.0 allow Notifications to have an Error response?

I still wasn't 100% sure after reading the JSON-RPC 2.0 spec about this: Does the spec allow the sender of a Notification the ability to receive back an Error object? For example if the receiver of the Notification failed to parse the payload of…
Henry Soang
  • 279
  • 5
  • 12
0
votes
1 answer

How to add a user to Limesurvey through RemoteControl 2?

Is there a way to add a user to Limesurvey through RemoteControl2-API? I would like to programmtically add users and surveys belonging to that user.
Hokascha
  • 1,709
  • 1
  • 23
  • 41
0
votes
3 answers

PHP Curl connection to JsonRPCServer Invalid Json

I have Json RPC Server written in Java and I have no code of it. $headers = array( 'Content-Type: application/json', 'Accept: application/json' ); $url="https://127.0.0.1:9999"; $pemfile = "C:\\openssl\\client.cer"; $keyfile =…
kanion
  • 117
  • 1
  • 7
0
votes
1 answer

Getting websocket connection information in JSON-RPC method

I am using JSON-RPC over Websocket. And, in an RPC method (say, Multiply in the example below), I need to know which connection called this method. The part below that says "// Need Websocket connection information here". How do I do so? package…
Sinatra
  • 820
  • 6
  • 13
0
votes
1 answer

"Failed to open stream: Permission denied" Connecting bitcoind with JSON-RPC PHP

I'm trying to control bitcoin daemon with PHP but I am having an issue when trying to connect to it. I've followed these steps: en.bitcoin (dot) it/wiki/PHP_developer_intro PHP code: