Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update apis.md #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions apis.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,14 @@ Functionalities exposed by token(Please refer documentation for details)
6. Get Reservation
7. Promotions and offers

Visit [this](https://platform.otqa.com/documentation/secure) link with the following credentials
````
PP Client ID / User Id : cpa_5069
PP Secret / Password: aMrmcXH4BuUlLIyN6paPhseSlrzMh6Lz
`````
Visit [this](https://platform.otqa.com/documentation/secure) link with a set of valid client credentials

Documentation [here](https://platform.otqa.com/documentation/secure)

Step 1: Get an access token:

````
curl --user cpa_5069:aMrmcXH4BuUlLIyN6paPhseSlrzMh6Lz -X POST https://oauth-pp.opentable.com/api/v2/oauth/token?grant_type=client_credentials
curl --user client_id:client_secret -X POST https://oauth-pp.opentable.com/api/v2/oauth/token?grant_type=client_credentials
````

Step 2: Access the API. This example gets availability for restaurant with id - 334879
Expand Down