Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a test JsonRpc server out there?

Tags:

json-rpc

Is there any server on the Internet that uses JsonRpc and is publically available?

I want to test a JsonRpc client.

Does Google have any page that allows reading of anything with JsonRpc? Does YouTube? Does Facebook? Does W3C?

The JsonRpc server that i want to talk to isn't responding; and i'm trying to figure out if it's because they don't support JsonRpc.

like image 966
Ian Boyd Avatar asked Oct 15 '25 23:10

Ian Boyd


1 Answers

Random.org has a nice api for generating random numbers.

For example, using Python with jsonrpcclient:

>>> import requests
>>> from jsonrpcclient import request, parse
>>> response = requests.post("http://api.random.org/json-rpc/1/invoke", request("generateIntegers", params={"apiKey": "(yourkey)", "n": 3, "min": 0, "max": 10}))
>>> parsed = parse(response.json())
>>> parsed.result
{'bitsLeft': 249920, 'advisoryDelay': 0, 'bitsUsed': 10, 'random': {'data': [9, 4, 2], 'completionTime': '2015-04-09 00:52:22Z'}, 'requestsLeft': 992}
like image 139
Beau Barker Avatar answered Oct 19 '25 15:10

Beau Barker