Commit 96d92e2707740eabc403221c6a2043b5795a0324

James Hilliard 2014-05-28T09:51:44

Add ruby api-example to API-README

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/API-README b/API-README
index 076785c..835ab24 100644
--- a/API-README
+++ b/API-README
@@ -482,6 +482,10 @@ api-example.php - a php script to access the API
  You must modify the line "$socket = getsock('127.0.0.1', 4028);" at the
  beginning of "function request($cmd)" to change where it looks for cgminer
 
+api-example.rb - a Ruby script to access the API.
+ usage: ruby api-example.rb command[:parameter] [HOST [PORT]]
+This script prints the parsed cgminer API response
+
 API.java/API.class
  a java program to access the API (with source code)
   usAge is: java API command address port