searchbing 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +8 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjM5NWMyN2U1OWQyYTg0NGEyZDkzMTk0YjUzNTJlMmY1Nzg2OGJmZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OGVlMDBjMjlkZTk2YzMxMmU0YzM5OTJlYTVmY2UzZGYxMGVmYTllOQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDlmMjM2MDM0OGJlOWNjYjdjNjM4Zjg3ZDkzYzk0MDU2MTRiNTc4MDc0OTA0
|
10
|
+
NmJlOGVhZGIxOGRlYWVlMDU1ZWM2ZjVkY2U3ODhlNWE3OTVhYjExMWNlZmQx
|
11
|
+
Y2JkODQwYWRhMzhmNjZkMDQ5ZWEyMWM4MTVjNTg1YzIyNDIwZmE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Zjc1NzFjNjQ1NzBiZDAzN2ViNzEyYzc1ZjRhMDI5NTJkMzU3MzYxOWFhNjg1
|
14
|
+
NmQzYTA5NGVhZTBlZWYxNWZjZTQyNWYzMmRlZDgzNWUwZDcxYjMyOTNkNDQ4
|
15
|
+
YjgyMzFmMDFmOTNiMTk4MGUxMDkzMWU0ODI4NDg1MzNlMTE1ZjI=
|
data/README.md
CHANGED
@@ -17,15 +17,17 @@ You can create a new account for the Bing Search API and obtain account key [her
|
|
17
17
|
|
18
18
|
Usage
|
19
19
|
============
|
20
|
-
|
21
|
-
2. valid search types include: Image, Web, or Video. The first letter must be capitalized
|
22
|
-
3. the searchbing gem relies on the open-uri, net/http, and json gems.
|
20
|
+
- valid search types include: Image, Web, or Video. The first letter must be capitalized
|
23
21
|
|
24
|
-
|
22
|
+
- this gem relies on the open-uri, net/http, and json gems.
|
23
|
+
|
24
|
+
Example: Interactive Ruby Shell
|
25
25
|
===============
|
26
|
-
##
|
26
|
+
## require the gem in your shell session
|
27
|
+
require 'searchbing'
|
28
|
+
## create a new search object
|
27
29
|
animals = Bing.new('your_account_key_goes_here', 10, 'Image')
|
28
|
-
##
|
30
|
+
## retrieve the results for a given term
|
29
31
|
bing_results = animals.search("lion")
|
30
32
|
## parse the results
|
31
33
|
puts bing_results[0]["Thumbnail"]["MediaUrl"] # puts url of thumbnail
|