Permalink
Browse files

update README to include mention of the getUserById method

  • Loading branch information...
1 parent 94c6172 commit 636e2b1690082c6910b76594389950f96aaa25db @kenguest committed Oct 2, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 README.markdown
View
@@ -93,6 +93,8 @@ Simply require and initialize the Services_OpenStreetMap class:
### Working with user information.
+The getUser() method retrieves information for the current user.
+
$config = array(
'user' => 'fred@example.com',
'password' => 'w1lma4evah'
@@ -102,3 +104,8 @@ Simply require and initialize the Services_OpenStreetMap class:
$user = $osm->getUser();
echo 'My OSM Mugshot is at ', $user->getImage(), "\n";
+
+The getUserById() method retrieves information for the specified user.
+
+ $osm = new Services_OpenStreetMap();
+ $user = $osm->getUserById(1);

0 comments on commit 636e2b1

Please sign in to comment.