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:
Ricardo Espinoza 2021-10-19 00:16:52 -04:00 committed by GitHub
parent 37e5b406f8
commit c3e3d9d46e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 0 deletions

View file

@ -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',

View file

@ -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 {