Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Create an instance

Maciej Wyrodek edited this page Nov 3, 2020 · 4 revisions

Constructor:

PocketClient(string consumerKey, string accessCode = null, Uri callbackUri = null)

consumerKey: The API key
accessCode: Provide an access code if the user is already authenticated
callbackUri: The callback URL is called by Pocket after authentication
handler: Use a custom HttpMessageHandler
timeout:Request timeout (in seconds)

Example:

PocketClient _client = new PocketClient(
	consumerKey: "123498237423498723498723",
	callbackUri: "https://swcs.pro",
	accessCode: "097809-oi987-izi8-jk98-oiuu89"
);

You can change the Access Code after initialization:

_client.AccessCode = "[YOU_ACCESS_CODE]";

Before authentication you will need to provide the callbackUri for authentication requests.
After authentication you will need to provide the accessCode.

Clone this wiki locally