Simplest minimum code for demo - https://youtube.com/shorts/fBjxXnTES40
Here is the example of 2 implementations:
XMLRPC
JSONRPC
I am using python examples here; Do not misunderstand this. RPC's are available in every language. Just serarch for it in your favorite language