mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
⚡ Add Twitter mode parameter to tweet:search (#2326)
* ⚡ Add Twitter mode parameter to tweet:search * ⚡ Minor improvements Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
@@ -357,6 +357,23 @@ export const tweetFields = [
|
|||||||
default: 'mixed',
|
default: 'mixed',
|
||||||
description: 'Specifies what type of search results you would prefer to receive',
|
description: 'Specifies what type of search results you would prefer to receive',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
displayName: 'Tweet Mode',
|
||||||
|
name: 'tweetMode',
|
||||||
|
type: 'options',
|
||||||
|
options: [
|
||||||
|
{
|
||||||
|
name: 'Compatibility',
|
||||||
|
value: 'compat',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Extended',
|
||||||
|
value: 'extended',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
default: 'compat',
|
||||||
|
description: 'When the extended mode is selected, the response contains the entire untruncated text of the Tweet',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
displayName: 'Until',
|
displayName: 'Until',
|
||||||
name: 'until',
|
name: 'until',
|
||||||
|
|||||||
@@ -235,6 +235,8 @@ export class Twitter implements INodeType {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
qs.tweet_mode = additionalFields.tweetMode || 'compat';
|
||||||
|
|
||||||
if (returnAll) {
|
if (returnAll) {
|
||||||
responseData = await twitterApiRequestAllItems.call(this, 'statuses', 'GET', '/search/tweets.json', {}, qs);
|
responseData = await twitterApiRequestAllItems.call(this, 'statuses', 'GET', '/search/tweets.json', {}, qs);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user