Skip to content

Commit 0545f12

Browse files
committed
1.0.3
1 parent be234bb commit 0545f12

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
/composer.phar
33
composer.lock
44
.idea
5+
.pre-commit-config.yaml

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
"RocketAPI\\": "src/"
1919
}
2020
}
21-
}
21+
}

license.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

src/InstagramAPI.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,16 @@ public function getMediaInfo($media_id) {
199199
]);
200200
}
201201

202+
/**
203+
* @throws Exceptions\NotFoundException
204+
* @throws Exceptions\BadResponseException
205+
*/
206+
public function getMediaInfoByShortcode($shortcode) {
207+
return $this->request('instagram/media/get_info_by_shortcode', [
208+
'shortcode' => $shortcode,
209+
]);
210+
}
211+
202212
/**
203213
* @throws Exceptions\NotFoundException
204214
* @throws Exceptions\BadResponseException
@@ -344,4 +354,4 @@ public function getAudioMedia($audio_id, $max_id=null) {
344354
}
345355
return $this->request('instagram/audio/get_media', $payload);
346356
}
347-
}
357+
}

0 commit comments

Comments
 (0)