From 74ebf5f924ce0d1ce2b39ca41fecbbb100a744f9 Mon Sep 17 00:00:00 2001 From: Pierre Grimaud Date: Mon, 20 Sep 2021 15:49:05 +0200 Subject: [PATCH] Update README.md --- README.md | 7 +++++++ tests/Utils/EndpointsTest.php | 11 +++++++++++ 2 files changed, 18 insertions(+) diff --git a/README.md b/README.md index 30bf14f..ff77c19 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,8 @@ If you like or use this package, please share your love by starring this reposit - **NEW : Fetch Reels 🎉** - **NEW : Fetch IGTV 🎉** - **NEW : Fetch medias where a user has been tagged on 🎉** +- **NEW : Fetch HD profile picture 🎉** +- **NEW : Post a message to a media 🎉** This version can retrieve **ANY** Instagram feed using **web scrapping**. @@ -53,6 +55,11 @@ composer require pgrimaud/instagram-user-feed # Changelog +**v6.12** - 2021-09-20: + +- Add method to post message on a media (example [here](https://github.com/pgrimaud/instagram-user-feed/blob/master/examples/post-comment.php)) 🎉. +- Add method to get HD profile picture (example [here](https://github.com/pgrimaud/instagram-user-feed/blob/master/examples/profile-alternative.php)) 🎉. + **v6.11** - 2021-09-13: - Add method to fetch medias where a user has been tagged on (example [here](https://github.com/pgrimaud/instagram-user-feed/blob/master/examples/tagged-medias.php)) 🎉. diff --git a/tests/Utils/EndpointsTest.php b/tests/Utils/EndpointsTest.php index 66f9f5e..49ed0e3 100644 --- a/tests/Utils/EndpointsTest.php +++ b/tests/Utils/EndpointsTest.php @@ -44,4 +44,15 @@ public function testGetLiveUrl() $endpoint = Endpoints::getLiveUrl('pgrimaud'); $this->assertSame('https://www.instagram.com/pgrimaud/live/?__a=1', $endpoint); } + + public function testGetCommentUrl() + { + $endpoint = Endpoints::getCommentUrl(123456789); + $this->assertSame('https://www.instagram.com/web/comments/123456789/add/', $endpoint); + } + public function testGetProfileUrl() + { + $endpoint = Endpoints::getProfileUrl(123456789); + $this->assertSame('https://i.instagram.com/api/v1/users/123456789/info/', $endpoint); + } }