mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08: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:
parent
37e5b406f8
commit
c3e3d9d46e
|
@ -357,6 +357,23 @@ export const tweetFields = [
|
|||
default: 'mixed',
|
||||
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',
|
||||
name: 'until',
|
||||
|
|
|
@ -235,6 +235,8 @@ export class Twitter implements INodeType {
|
|||
}
|
||||
}
|
||||
|
||||
qs.tweet_mode = additionalFields.tweetMode || 'compat';
|
||||
|
||||
if (returnAll) {
|
||||
responseData = await twitterApiRequestAllItems.call(this, 'statuses', 'GET', '/search/tweets.json', {}, qs);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue