Skip to content

Commit 5b9b120

Browse files
Merge pull request #36 from blackducksoftware/OTWO-4695
OTWO-4695 Updated the Doc
2 parents b3450ed + 3d08e93 commit 5b9b120

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

email_lookup.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@ You can pass the MD5 hash of an email address in any URL that normally expects a
66

77
This is useful if you know someone’s email address, but do not know the Ohloh account ID. This might be the case if you are hosting a web site with registered users who have supplied their email addresses. With the Ohloh API, you can easily find Ohloh statistics about your registered users.
88

9-
For example, here’s how to find the account data for `robin@openhub.net`:
10-
+ Generate the MD5 hash for `robin@openhub.net`. From a bash command prompt you can do this simply:
9+
For example, here’s how to find the account data for `info@openhub.net`:
10+
+ Generate the MD5 hash for `info@openhub.net`. From a irb shell you can do this simply:
1111
```shell
12-
$ md5 -q -s robin@openhub.net
13-
63f26c4a00677ea1e8b14d2a56efb104
12+
require 'digest'
13+
Digest::MD5.hexdigest('info@openhub.net').to_s
14+
f1c4c8746d8e42872f6db32977ad5d61
1415
```
1516

1617
+ Pass this hash in place of the account ID in the normal http request:
1718
```shell
18-
$ curl https://www.openhub.net/accounts/63f26c4a00677ea1e8b14d2a56efb104
19+
$ curl https://www.openhub.net/accounts/f1c4c8746d8e42872f6db32977ad5d61.xml?api_key=<YOUR API KEY>
1920
```
2021

2122
Ohloh does not publish email addresses. You must already know the email address of the account you are looking for. Because the search is done using the MD5 hash of the email address, the email address comparison is case sensitive and must match exactly.

0 commit comments

Comments
 (0)