From 9bf3d65be68d80f5e288ca389af5e7147f91c335 Mon Sep 17 00:00:00 2001 From: Kenji Rudio Date: Wed, 20 Nov 2019 11:48:30 -0800 Subject: [PATCH] Update apis.md --- apis.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/apis.md b/apis.md index faa262a..0f10001 100644 --- a/apis.md +++ b/apis.md @@ -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