Skip to content

Commit

Permalink
Documentation edit
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Alekseev committed Jan 27, 2017
1 parent e681d09 commit 784a37c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This package provides possibility for third party applications to log in with tr

First of all you need to get a client ID.

If you don't have one, you need create a request to Hotel Manager team or another responsible team in order to get it.
If you don't have one, please send a request to [email protected]

## How to start

Expand Down Expand Up @@ -47,17 +47,17 @@ We have several predefined scopes that you can use at the moment:
If you don't pass any scopes, default one will be used (personal_info).

## API reference

### trvOauthSdk(clientId, options)

Method to initialize your application. Returns an object with `authorize` method in it.
Throws an error if `clientId` was not specified or was not a string.

#### clientId `<string>` *required*
A clientId provided by trivago in order to make possible to log in with trivago.

#### options `<object>` *optional*

##### options.scope `string`:

Oauth scope, default: '' (empty string)
Expand All @@ -73,7 +73,7 @@ Consider the next example which shows how this library can be used:
<script type="text/javascript" src="path/to/trv.sdk.js"></script>
<script type="text/javascript">
var sdk = trvOauthSdk('your-client-id');

var button = document.getElementById('button');
button.addEventListener('click', onClick);
function onClick() {
Expand All @@ -85,4 +85,4 @@ Consider the next example which shows how this library can be used:
}
</script>

```
```

0 comments on commit 784a37c

Please sign in to comment.