Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetc authored Apr 5, 2017
1 parent 8b405be commit 0771332
Showing 1 changed file with 40 additions and 6 deletions.
46 changes: 40 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,48 @@ For now it is not possible to access the $scope and $ctrl without the debug info
Primo.explore.session.id
```
## user
TODO
### Get user ID
```js
Primo.explore.session.user.id
```
### Get user name
```js
Primo.explore.session.user.name
```
### Get user email
```js
Primo.explore.session.user.email
```
### Is user logged in
```js
Primo.explore.session.user.isLoggedIn()
```
### is user on campus
```js
Primo.explore.session.user.isOnCampus()
```
## view
TODO
### Get VID
```js
Primo.explore.session.view.code
```
### Get institution code
```js
Primo.explore.session.view.institution.code
```
### Get institution name
```js
Primo.explore.session.view.institution.name
```
### Get interface language
```js
Primo.explore.session.view.interfaceLanguage
```
## ip
TODO
## institution
TODO

### Get IP address of your Primo session
```js
Primo.explore.session.ip.address
```
# Components
## Getting available components
The components list changes over time. Some components are only available in certain situations
Expand Down

0 comments on commit 0771332

Please sign in to comment.