rettiwt-api 6.0.4 → 6.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/Rettiwt.d.ts +2 -0
- package/dist/Rettiwt.js +4 -0
- package/dist/Rettiwt.js.map +1 -1
- package/package.json +1 -1
- package/src/Rettiwt.ts +5 -0
package/README.md
CHANGED
|
@@ -210,7 +210,7 @@ const rettiwt = new Rettiwt({ apiKey: API_KEY });
|
|
|
210
210
|
*/
|
|
211
211
|
rettiwt.tweet.search({
|
|
212
212
|
fromUsers: ['<username>'],
|
|
213
|
-
|
|
213
|
+
includeWords: ['<word1>', '<word2>']
|
|
214
214
|
})
|
|
215
215
|
.then(data => {
|
|
216
216
|
...
|
|
@@ -243,7 +243,7 @@ const rettiwt = new Rettiwt({ apiKey: API_KEY });
|
|
|
243
243
|
*/
|
|
244
244
|
rettiwt.tweet.search({
|
|
245
245
|
fromUsers: ['<username>'],
|
|
246
|
-
|
|
246
|
+
includeWords: ['<word1>', '<word2>']
|
|
247
247
|
}, count, data.next.value)
|
|
248
248
|
.then(data => {
|
|
249
249
|
...
|
package/dist/Rettiwt.d.ts
CHANGED
|
@@ -58,6 +58,8 @@ export declare class Rettiwt {
|
|
|
58
58
|
* @param config - The config object for configuring the Rettiwt instance.
|
|
59
59
|
*/
|
|
60
60
|
constructor(config?: IRettiwtConfig);
|
|
61
|
+
/** Get the current API key associated with this instance. */
|
|
62
|
+
get apiKey(): string | undefined;
|
|
61
63
|
/** Set the API key for the current instance. */
|
|
62
64
|
set apiKey(apiKey: string | undefined);
|
|
63
65
|
/** Set the custom headers for the current instance. */
|
package/dist/Rettiwt.js
CHANGED
|
@@ -66,6 +66,10 @@ class Rettiwt {
|
|
|
66
66
|
this.tweet = new TweetService_1.TweetService(this._config);
|
|
67
67
|
this.user = new UserService_1.UserService(this._config);
|
|
68
68
|
}
|
|
69
|
+
/** Get the current API key associated with this instance. */
|
|
70
|
+
get apiKey() {
|
|
71
|
+
return this._config.apiKey;
|
|
72
|
+
}
|
|
69
73
|
/** Set the API key for the current instance. */
|
|
70
74
|
set apiKey(apiKey) {
|
|
71
75
|
this._config.apiKey = apiKey;
|
package/dist/Rettiwt.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rettiwt.js","sourceRoot":"","sources":["../src/Rettiwt.ts"],"names":[],"mappings":";;;AAAA,0DAAuD;AACvD,+DAA4D;AAC5D,iEAA8D;AAC9D,+DAA4D;AAG5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAa,OAAO;IACnB,qCAAqC;IAC7B,OAAO,CAAgB;IAE/B,wDAAwD;IACjD,IAAI,CAAc;IAEzB,yDAAyD;IAClD,KAAK,CAAe;IAE3B,wDAAwD;IACjD,IAAI,CAAc;IAEzB;;;;OAIG;IACH,YAAmB,MAAuB;QACzC,IAAI,CAAC,OAAO,GAAG,IAAI,6BAAa,CAAC,MAAM,CAAC,CAAC;QACzC,IAAI,CAAC,IAAI,GAAG,IAAI,yBAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1C,IAAI,CAAC,KAAK,GAAG,IAAI,2BAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5C,IAAI,CAAC,IAAI,GAAG,IAAI,yBAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3C,CAAC;IAED,gDAAgD;IAChD,IAAW,MAAM,CAAC,MAA0B;QAC3C,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;IAC9B,CAAC;IAED,uDAAuD;IACvD,IAAW,OAAO,CAAC,OAAkC;QACpD,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,OAAO,CAAC;IAChC,CAAC;IAED,kDAAkD;IAClD,IAAW,QAAQ,CAAC,QAAa;QAChC,IAAI,CAAC,OAAO,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAClC,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 +70,11 @@ export class Rettiwt {
|
|
|
70
70
|
this.user = new UserService(this._config);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
/** Get the current API key associated with this instance. */
|
|
74
|
+
public get apiKey(): string | undefined {
|
|
75
|
+
return this._config.apiKey;
|
|
76
|
+
}
|
|
77
|
+
|
|
73
78
|
/** Set the API key for the current instance. */
|
|
74
79
|
public set apiKey(apiKey: string | undefined) {
|
|
75
80
|
this._config.apiKey = apiKey;
|