Skip to content
Hounddog edited this page Nov 3, 2012 · 4 revisions

All functionalities here require the user to be authenticated. Please refer to Authentication

##Get the user

   $client->api('current_user')->show();
```

##List repositories
List public repositories for the authenticated user
````php
   $client->api('current_user')->repos($params);
```
This will return a Repository Collection. Please refer to [RepositoryCollection](http://#)
###Parameters
* type
     * `all`, `owner`, `public`, `private`, `member`. Default: `all`.
* sort
     * `created`, `updated`, `pushed`, `full_name`, default: full_name`
* direction
     * `asc` or `desc`, default: when using full_name: `asc`, `otherwise desc`
* per_page
     * default: `30`
* page
     * default: `1`

##List User Organizations
List public and private organizations for the authenticated user.
````php
   $client->api('current_user')->orgs();
```

Clone this wiki locally