diff --git a/README.md b/README.md index b3536ed..cef05cd 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,9 @@ In order to communicate with a Pocket User, you will need a consumer key (which The authentication is a 3-step process: -1) Receive the **request code** and **authentication URI** from the library by calling `string GetRequestCode()`: +### 1) Generate authentication URI + +Receive the **request code** and **authentication URI** from the library by calling `string GetRequestCode()`: ```csharp string requestCode = _client.GetRequestCode(); @@ -100,9 +102,13 @@ Uri authenticationUri = _client.GenerateAuthenticationUri(); The _request code_ is stored internally, but you can also provide it as param in `GenerateAuthenticationUri(string requestCode = null)`. -2) Next you need to redirect the user to the `authenticationUri`, which displays a prompt to grant permissions for the application. After the user granted or denied, he/she is redirected to the `callbackUri`. +### 2) Redirect to Pocket +Next you need to redirect the user to the `authenticationUri`, which displays a prompt to grant permissions for the application (see image). After the user granted or denied, he/she is redirected to the `callbackUri`. -3) Call `string GetAccessCode(string requestCode = null)` +![authentication screen](https://raw.github.com/ceee/PocketSharp/master/PocketSharp/authentication-screen.png) + +### 3) Get Access Code +Call `string GetAccessCode(string requestCode = null)` ```csharp string accessCode = _client.GetAccessCode();