ahmetbedir / instafeed
这是一个可以快速获取并使用Instagram图片的包。只需提供用户名即可!
dev-master
2021-03-24 21:32 UTC
This package is auto-updated.
Last update: 2024-09-25 05:56:50 UTC
README
这是一个可以快速获取并使用Instagram图片的包。只需提供用户名即可!
基本用法
$username = 'ahmetbedir'; $instafeed = new Ahmetbedir\InstaFeed($username);
用户信息可用方法
$userInfo = $instafeed->getUserInfo(); // Get Username $userInfo->username(); // Get Full Name $userInfo->fullName(); // Get Biography $userInfo->bio(); // Get Followes Count (int) $userInfo->followersCount(); // Get Follow Count (int) $userInfo->followCount(); // Get Account Category $userInfo->category(); // Get Account Private Status (boolean) $userInfo->isPrivate(); // Get Account Verified Status (boolean) $userInfo->isVerified(); // Get Account Business Status (boolean) $userInfo->isBusinessAccount(); // Get Account Joined Recently Status (boolean) $userInfo->isJoinedRecently(); // Get Account Connected Facebook Page Status (boolean) $userInfo->isConnectedFbPage();
用户动态可用方法
// Get All Feeds By Feed Object $allFeeds = $instafeed->getFeedList(); // Get First Feed $firstFeed = $instafeed->getFirstFeed(); // Get Feed Url $firstFeed->getDisplayUrl(); // Get Thumnail Feed Url $firstFeed->getThumbnail(); // Get Feed Dimensions by Array e.g ["width" => 1333, "height" => 750] $firstFeed->getDimensions(); // Get Feed Like Count $firstFeed->getLikeCount(); // Get Feed Comment Count $firstFeed->getCommentCount(); // Get Feed Location Name $firstFeed->getLocationName(); // Get Feed Caption $firstFeed->getCaption(); // Get Feed Video Status (Boolean) $firstFeed->isVideo();