Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

twitter-api-v2

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twitter-api-v2 - npm Package Compare versions

Comparing version 1.12.7 to 1.12.8

dist/paginators/followers.paginator.v1.d.ts

5

changelog.md

@@ -0,1 +1,6 @@

1.12.8
------
- Feat: Add `edit_history_tweet_ids` to `TweetV2`
- Feat: Add v1 friends/followers paginators (thanks to @Abdullah-Malik) #380
1.12.7

@@ -2,0 +7,0 @@ ------

2

dist/paginators/index.d.ts

@@ -10,1 +10,3 @@ export * from './tweet.paginator.v2';

export * from './list.paginator.v2';
export * from './friends.paginator.v1';
export * from './followers.paginator.v1';

@@ -26,1 +26,3 @@ "use strict";

__exportStar(require("./list.paginator.v2"), exports);
__exportStar(require("./friends.paginator.v1"), exports);
__exportStar(require("./followers.paginator.v1"), exports);

@@ -51,2 +51,12 @@ import { UserEntitiesV1 } from './entities.v1.types';

}
export interface UserFollowingsIdsV1Params extends DoubleEndedIdCursorV1Params {
screen_name?: string;
user_id?: string;
count?: number;
}
export interface UserFollowerIdsV1Params extends DoubleEndedIdCursorV1Params {
screen_name?: string;
user_id?: string;
count?: number;
}
export interface VerifyCredentialsV1Params {

@@ -141,2 +151,4 @@ include_entities?: boolean;

export declare type MuteUserIdsV1Result = DoubleEndedIdCursorV1Result;
export declare type UserFollowerIdsV1Result = DoubleEndedIdCursorV1Result;
export declare type UserFollowingIdsV1Result = DoubleEndedIdCursorV1Result;
export interface BannerSizeV1 {

@@ -143,0 +155,0 @@ h: number;

@@ -177,2 +177,3 @@ import type { UserV2 } from './user.v2.types';

text: string;
edit_history_tweet_ids: string[];
created_at?: string;

@@ -179,0 +180,0 @@ author_id?: string;

import TwitterApiSubClient from '../client.subclient';
import { FilterStreamV1Params, SampleStreamV1Params, UserV1, VerifyCredentialsV1Params, AppRateLimitV1Result, TAppRateLimitResourceV1, HelpLanguageV1Result, ReverseGeoCodeV1Params, ReverseGeoCodeV1Result, PlaceV1, SearchGeoV1Params, SearchGeoV1Result, TrendMatchV1, TrendsPlaceV1Params, TrendLocationV1, TweetV1TimelineParams, TweetV1UserTimelineParams, TweetV1, MediaStatusV1Result, OembedTweetV1Params, OembedTweetV1Result, MuteUserListV1Params, MuteUserIdsV1Params, UserSearchV1Params, AccountSettingsV1, ProfileBannerSizeV1, ProfileBannerSizeV1Params, FriendshipLookupV1Params, FriendshipLookupV1, FriendshipShowV1Params, FriendshipV1, FriendshipsIncomingV1Params, UserShowV1Params, UserLookupV1Params, TweetShowV1Params, TweetLookupNoMapV1Params, TweetLookupMapV1Params, TweetLookupMapV1Result, ListListsV1Params, ListV1, ListMembersV1Params, ListMemberShowV1Params, ListMembershipsV1Params, ListOwnershipsV1Params, GetListV1Params, ListStatusesV1Params, ListSubscriptionsV1Params } from '../types';
import { FilterStreamV1Params, SampleStreamV1Params, UserV1, VerifyCredentialsV1Params, AppRateLimitV1Result, TAppRateLimitResourceV1, HelpLanguageV1Result, ReverseGeoCodeV1Params, ReverseGeoCodeV1Result, PlaceV1, SearchGeoV1Params, SearchGeoV1Result, TrendMatchV1, TrendsPlaceV1Params, TrendLocationV1, TweetV1TimelineParams, TweetV1UserTimelineParams, TweetV1, MediaStatusV1Result, OembedTweetV1Params, OembedTweetV1Result, MuteUserListV1Params, MuteUserIdsV1Params, UserFollowerIdsV1Params, UserFollowingsIdsV1Params, UserSearchV1Params, AccountSettingsV1, ProfileBannerSizeV1, ProfileBannerSizeV1Params, FriendshipLookupV1Params, FriendshipLookupV1, FriendshipShowV1Params, FriendshipV1, FriendshipsIncomingV1Params, UserShowV1Params, UserLookupV1Params, TweetShowV1Params, TweetLookupNoMapV1Params, TweetLookupMapV1Params, TweetLookupMapV1Result, ListListsV1Params, ListV1, ListMembersV1Params, ListMemberShowV1Params, ListMembershipsV1Params, ListOwnershipsV1Params, GetListV1Params, ListStatusesV1Params, ListSubscriptionsV1Params } from '../types';
import { HomeTimelineV1Paginator, ListTimelineV1Paginator, MentionTimelineV1Paginator, UserFavoritesV1Paginator, UserTimelineV1Paginator } from '../paginators/tweet.paginator.v1';
import { MuteUserIdsV1Paginator, MuteUserListV1Paginator } from '../paginators/mutes.paginator.v1';
import { UserFollowerIdsV1Paginator } from '../paginators/followers.paginator.v1';
import { UserFollowersIdsV1Paginator } from '../paginators/friends.paginator.v1';
import { FriendshipsIncomingV1Paginator, FriendshipsOutgoingV1Paginator, UserSearchV1Paginator } from '../paginators/user.paginator.v1';

@@ -97,2 +99,12 @@ import { ListMembershipsV1Paginator, ListMembersV1Paginator, ListOwnershipsV1Paginator, ListSubscribersV1Paginator, ListSubscriptionsV1Paginator } from '../paginators/list.paginator.v1';

/**
* Returns an array of numeric user ids of followers of the specified user.
* https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-followers-ids
*/
userFollowerIds(options?: Partial<UserFollowerIdsV1Params>): Promise<UserFollowerIdsV1Paginator>;
/**
* Returns an array of numeric user ids of friends of the specified user.
* https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-friends-ids
*/
userFollowingIds(options?: Partial<UserFollowingsIdsV1Params>): Promise<UserFollowersIdsV1Paginator>;
/**
* Provides a simple, relevance-based search interface to public user accounts on Twitter.

@@ -99,0 +111,0 @@ * https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-users-search

@@ -12,2 +12,4 @@ "use strict";

const mutes_paginator_v1_1 = require("../paginators/mutes.paginator.v1");
const followers_paginator_v1_1 = require("../paginators/followers.paginator.v1");
const friends_paginator_v1_1 = require("../paginators/friends.paginator.v1");
const user_paginator_v1_1 = require("../paginators/user.paginator.v1");

@@ -219,2 +221,36 @@ const list_paginator_v1_1 = require("../paginators/list.paginator.v1");

/**
* Returns an array of numeric user ids of followers of the specified user.
* https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-followers-ids
*/
async userFollowerIds(options = {}) {
const queryParams = {
stringify_ids: true,
...options,
};
const initialRq = await this.get('followers/ids.json', queryParams, { fullResponse: true });
return new followers_paginator_v1_1.UserFollowerIdsV1Paginator({
realData: initialRq.data,
rateLimit: initialRq.rateLimit,
instance: this,
queryParams,
});
}
/**
* Returns an array of numeric user ids of friends of the specified user.
* https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-friends-ids
*/
async userFollowingIds(options = {}) {
const queryParams = {
stringify_ids: true,
...options,
};
const initialRq = await this.get('friends/ids.json', queryParams, { fullResponse: true });
return new friends_paginator_v1_1.UserFollowersIdsV1Paginator({
realData: initialRq.data,
rateLimit: initialRq.rateLimit,
instance: this,
queryParams,
});
}
/**
* Provides a simple, relevance-based search interface to public user accounts on Twitter.

@@ -221,0 +257,0 @@ * https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-users-search

2

package.json
{
"name": "twitter-api-v2",
"version": "1.12.7",
"version": "1.12.8",
"description": "Strongly typed, full-featured, light, versatile yet powerful Twitter API v1.1 and v2 client for Node.js.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc