Skip to content
Browse files

get results for multiple verses

  • Loading branch information...
1 parent af1ee8a commit 6bd89a758eb09714218d2d35843aab641610ab0a @calvinf committed Dec 17, 2011
Showing with 10 additions and 3 deletions.
  1. +7 −0 README.md
  2. +3 −3 bibles-api.rb
View
7 README.md
@@ -7,3 +7,10 @@ Note: In Progress
-----------------
This is an early version while I get things working. I'll refactor the code and make it more reusable as I go.
+
+Dependencies
+------------
+Gems:
+* cgi
+* curb
+* json
View
6 bibles-api.rb
@@ -3,7 +3,7 @@
require 'cgi'
require 'curb'
-#require 'json'
+require 'json'
# globals
API_BASE = 'http://bibles.org/'
@@ -33,7 +33,7 @@ def get_search_result(url)
d = []
e = []
-url = get_search_url(a[0])
-puts "URL: " + url
+full_pack_list = a.join(',')
+url = get_search_url(full_pack_list)
get_search_result(url)

0 comments on commit 6bd89a7

Please sign in to comment.
Something went wrong with that request. Please try again.