Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update README to include mention of the getUserById method

  • Loading branch information...
commit 636e2b1690082c6910b76594389950f96aaa25db 1 parent 94c6172
@kenguest authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 README.markdown
View
7 README.markdown
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.