File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ public function fetchProfile($username)
119
119
],
120
120
'cookies ' => $ this ->cookie
121
121
];
122
- return $ this ->SendRequest ('GET ' , " https://www.instagram.com/ $ username/ " , $ options );
122
+ return $ this ->SendRequest ('GET ' , Uri:: USER_PROFILE_URL . $ username , $ options );
123
123
}
124
124
public function fetchHighlight ($ url , $ opt = 'first_response ' )
125
125
{
@@ -137,10 +137,10 @@ public function fetchHighlight($url, $opt = 'first_response')
137
137
'cookies ' => $ this ->cookie
138
138
];
139
139
try {
140
- $ result = json_decode ($ this ->SendRequest ('GET ' , " https://www.instagram.com/reels/ highlight%3A" . $ matches [1 ], $ options ));
140
+ $ result = json_decode ($ this ->SendRequest ('GET ' , Uri:: REELS_URL . ' highlight%3A ' . $ matches [1 ], $ options ));
141
141
} catch (Exception $ e ) {
142
142
preg_match ('/www.instagram.com\/s\/(.+)[?]/ ' , $ url , $ matches2 );
143
- $ result = json_decode ($ this ->SendRequest ('GET ' , " https://www.instagram.com/reels/ " . base64_decode ($ matches2 [1 ]), $ options ));
143
+ $ result = json_decode ($ this ->SendRequest ('GET ' , Uri:: REELS_URL . base64_decode ($ matches2 [1 ]), $ options ));
144
144
}
145
145
break ;
146
146
default :
You can’t perform that action at this time.
0 commit comments