Members
(inner) config :Object
Configuration object providing a default configuration to be used by ReadingData#use()
Properties:
Name | Type | Default | Description |
---|---|---|---|
scope |
String
|
'instapaper' | The scope this plugin’s data should be saved under on the ReadingData instance. |
limit |
Number
|
5 | The maximum number of bookmarks to request from the Instapaper API. |
folder_id |
String
|
'archive' | The folder to request from the Instapaper API. |
apiVersion |
Number
|
1.1 | The version of the Instapaper API that should be queried. |
fetchText |
Boolean
|
false | Whether or not to try to retrieve a bookmark’s full text. |
useCache |
Boolean
|
false | Whether or not to use cached/preloaded data. |
Type:
-
Object
Methods
(inner) data(pluginContext, context) → {Object}
Create a client for the Instapaper API and request a collection of bookmarks.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
pluginContext |
Object
|
Context variables specific to this plugin.
|
|||||||||
context |
Object
|
Contextual this passed from the ReadingData calling environment. Equivalent to the entire ReadingData instance.
|
Returns:
- Type:
-
Object
Data to be stored by ReadingData under this plugin’s scope.