This repository was archived by the owner on Jan 12, 2024. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork 12
Create an instance
Maciej Wyrodek edited this page Nov 3, 2020
·
4 revisions
Constructor:
PocketClient(stringconsumerKey,stringaccessCode=null,UricallbackUri=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=newPocketClient(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.