
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
pjwebco-instagram-graph-api
Advanced tools
This repository contains a set of functions to interact with the Instagram Graph API. These functions allow you to retrieve information about Instagram users, media, reels, TV series, and TV videos. The code is organized into separate modules for each Ins
Certainly! Here's a sample README.md
file with documentation for all the generated files:
# Instagram API Documentation
This repository contains a set of functions to interact with the Instagram Graph API. These functions allow you to retrieve information about Instagram users, media, reels, TV series, and TV videos. The code is organized into separate modules for each Instagram feature.
### Configuration
The API Configuration module provides an instance of the `APIConfig` class, which includes the following configuration properties:
- `baseURL` (string): The base URL for API requests.
- `accessToken` (string): The user's access token.
You can set the API configuration by calling the `setConfig` method with either a new configuration object or an access token string. If you provide a configuration object, you can specify the `accessToken` and `baseURL` properties.
```javascript
// Set the library configuration with an access token
API.setConfig("your-access-token");
// Set the library configuration with a new base URL and access token
API.setConfig({
accessToken: "your-access-token",
baseURL: "https://new-api-url.com",
});
```
getUserInfo(username: string): Promise<object>
This function retrieves information about a specific Instagram user.
username
(string): The username of the user to retrieve information for.searchUsers(query: string): Promise<object>
This function allows you to search for Instagram users by name or username.
query
(string): The search query.getUserFollowers(userId: string): Promise<object>
This function retrieves a list of users who follow a specific Instagram user.
userId
(string): The ID of the user to retrieve followers for.getUserFollowing(userId: string): Promise<object>
This function retrieves a list of users that a specific Instagram user is following.
userId
(string): The ID of the user to retrieve following for.getMediaInfo(mediaId: string): Promise<object>
This function retrieves information about a specific Instagram media object.
mediaId
(string): The ID of the media object to retrieve.searchMediaByHashtag(hashtag: string): Promise<object>
This function allows you to search for Instagram media objects by hashtag.
hashtag
(string): The hashtag to search for.getCommentInfo(commentId: string): Promise<object>
This function retrieves information about a specific Instagram comment.
commentId
(string): The ID of the comment to retrieve.searchCommentsOnMedia(mediaId: string): Promise<object>
This function allows you to search for comments on a specific media object by media ID.
mediaId
(string): The ID of the media object to search for comments on.getUserMedia(username: string, options?: number | GetUserMediaOptions): Promise<object>
This function fetches a user's media by username with optional media type and limit.
username
(string): Instagram username.options
(number | GetUserMediaOptions): Optional parameters for media type and limit.getMediaLikes(mediaId: string): Promise<object>
This function retrieves a list of users who have liked a specific Instagram media object.
mediaId
(string): The ID of the media object to retrieve likes for.getMediaComments(mediaId: string): Promise<object>
This function retrieves a list of comments on a specific Instagram media object.
mediaId
(string): The ID of the media object to retrieve comments for.getReelInfo(reelId: string): Promise<object>
This function retrieves information about a specific Instagram Reel.
reelId
(string): The ID of the Reel to retrieve.searchReels(query: string): Promise<object>
This function allows you to search for Instagram Reels.
query
(string): The search query.getMentions(username: string): Promise<object>
This function retrieves a list of comments that mention a specific Instagram user.
username
(string): The Instagram username to search for mentions.getTvSeriesInfo(seriesId: string): Promise<object>
This function retrieves information about a specific Instagram TV series.
seriesId
(string): The ID of the TV series to retrieve.searchTvSeries(query: string): Promise<object>
This function allows you to search for Instagram TV series.
query
(string): The search query.getTvVideoInfo(videoId: string): Promise<object>
This function retrieves information about a specific Instagram TV video.
videoId
(string): The ID of the TV video to retrieve.searchTvVideos(query: string): Promise<object>
This function allows you to search for Instagram TV videos.
query
(string): The search query.This code is provided under the MIT license.
You can use this `README.md` as a starting point and modify it as needed to suit your project's specific requirements.
FAQs
This repository contains a set of functions to interact with the Instagram Graph API. These functions allow you to retrieve information about Instagram users, media, reels, TV series, and TV videos. The code is organized into separate modules for each Ins
We found that pjwebco-instagram-graph-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.