Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
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
Readme
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
The npm package pjwebco-instagram-graph-api receives a total of 0 weekly downloads. As such, pjwebco-instagram-graph-api popularity was classified as not popular.
We found that pjwebco-instagram-graph-api demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.