Instagram-API 发布版本: Stable release v5.0.0
This release adds new features and some very important fixes. If I left any undocumented backwards-compatibility breaking change here, please send me an email and I will update the release note. ### backwards-compatibility breaking changes - Moved `sendTwoFactorLoginSMS()` from `Account` to `InstagramAPI` class. ### Features #### Update Constants to 220.127.116.11.96 - **Business**: Added basic requests to switch your account between personal and business profiles. - **Client**: Prepare the client for middleware. - **Client**: Add zero rating rewrite middleware - **InstagramAPI**: Added `userLookup()`. - **InstagramAPI**: Added `sendRecoverySMS()` and `sendRecoveryEmail()` functions. These functions help the user to get a recovery link to recover their account. - **Hashtag**: Added `getStory()` to get stories related to the hashtag. - **Instagram TV**: Basic functions to interact with IGTV. - **Media**: Added `getPermalink()`. This function will return permanent link of the provided media. - **Media**: Audio muted flag can now be set from the external metadata. - **Media Normalization**: Prepares and normalize media files to be uploaded to Instagram. - **People**: Added `markUserOverage()`. Mark user over age in order to see sensitive content - **People**: Added `muteUserMedia()` and `unmuteUserMedia` to mute stories or media. - **People**: Turn on/off story notifications. - **Reporting Media**: Added functions to report content: `discover->reportExploreMedia()`, `media->report()` and `media->reportComment()`. - **Shopping and Products**: Business accounts will be able to search products in their catalogs, manage their catalogs and tag products on the media. Commit: c5a7cc8f6545b5ebcacc5cb0a5544b459218a0dd - **Story**: Get poll voters. This function that lets the user owning a story poll to get it results filtered by the voting option. - **Story**: Added `getArchivedStoriesFeed()`. ### Fixes #### Improved, refactorized the code to normalize media and aspect ratios. - Fixed 2 factor authentication login parameters. - Update `getCurrentUser()` POST params. - Update missing params on `feed/timeline/` endpoint. - Deleted duplicated code and invalid calls. - Updated example files. - Force returned value to be an object in `Signatures`. - Hundreds of internal code and documentation improvements everywhere, along with lots of refactoring for cleaner code and increased reliability. - Several updates to the `Hashtag`, `Highlight` and `Story` classes. - Client: Force cURL to reopen a connection when network settings change. - FFmpeg: Use a threshold when cutting too long videos. - Internal: Workaround for missing `GLOB_BRACE`. --- - Remember that this is not a freeware library. To use this library, you must follow [the legally binding project license](https://github.com/mgp25/Instagram-API#license), which is based on returning contributions "as thanks for the library", to keep the project alive. - Donations and code contributions are welcome and help motivate us to continue development (and none of us are feeling motivated at the moment...). For instructions on how you can contribute code/donate, please see the [project readme](https://github.com/mgp25/Instagram-API/blob/master/README.md). --- Huge thanks to [@valga](https://github.com/valga) and [@steveJobzniak](https://github.com/steveJobzniak) for all the awesome work they have put into this API in the past months. They have added very useful code, fixed, improved and refactored the code to be as perfect as it could be. Thanks to these two guys, the API is what it is now. Send them some ❤️ -- With Love from The Team.