PHP 클래스 Instagram\Instagram

파일 보기 프로젝트 열기: liamcottle/instagram-sdk-php 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( )
blockUser ( string | User $userId ) : BlockFriendshipResponse Block User
changeProfilePicture ( string $path ) : ChangeProfilePictureAccountResponse Change Profile Picture
commentOnMedia ( string | FeedItem $mediaId, string $comment ) : CommentMediaResponse Comment on Media
deleteCommentsFromMedia ( string | FeedItem $mediaId, array $commentIds ) : API\Response\BulkDeleteCommentsMediaResponse Delete Media Comments
deleteMedia ( string | FeedItem $mediaId, string $mediaType ) : DeleteMediaResponse Delete Media
editMedia ( string | FeedItem $mediaId, string $caption = null ) : EditMediaResponse Edit Media
editUserProfile ( string $firstname = null, string $email = null, string $phoneNumber = null, integer $gender = null, string $biography = null, string $externalUrl = null ) : EditProfileAccountResponse Edit User Profile
followUser ( string | User $userId ) : CreateFriendshipResponse Follow User
generateDeviceId ( $seed ) : string
getCSRFToken ( ) : string
getCookies ( ) : array
getCurrentUserAccount ( ) : CurrentUserAccountResponse Get Current User Account
getDeviceId ( ) : string
getGUID ( ) : string
getGoogleAdId ( ) : string
getLikedFeed ( string $maxId = null ) : LikedFeedResponse Fetch Liked Feed
getLocationFeed ( string | Location $locationId, string $maxId = null ) : LocationFeedResponse Fetch Location Feed
getLoggedInUser ( ) : User
getMediaComments ( string | FeedItem $mediaId, string $maxId ) : CommentsMediaResponse Get Media Comments
getMediaInfo ( string | FeedItem $mediaId ) : InfoMediaResponse Get Media Info
getMyUserFeed ( string $maxId = null ) : UserFeedResponse Fetch My User Feed
getPhoneId ( ) : string
getProxy ( ) : string Get the HTTP Proxy to be used for Instagram API Requests
getProxyCredentials ( ) : string Get the HTTP Proxy Credentials to be used for Instagram API Requests
getRankToken ( ) : string
getTagFeed ( string $tag, string $maxId = null ) : TagFeedResponse Fetch Tag Feed
getTimelineFeed ( string $maxId = null ) : TimelineFeedResponse Fetch Timeline Feed
getUUID ( ) : string
getUserByUsername ( string $username ) : User Get User by Username
getUserFeed ( string | User $userId, string $maxId = null ) : UserFeedResponse Fetch User Feed
getUserFollowers ( string | User $userId, string $maxId ) : FollowersFriendshipResponse Get User Followers
getUserFollowing ( string | User $userId, string $maxId ) : FollowingFriendshipResponse Get User Following
getUserInfo ( string | User $userId ) : InfoUserResponse Get User Info
getUserMap ( string | User $userId ) : UserMapResponse Get GeoMedia from Map of User
getUserRankToken ( ) : string
getUserTagsFeed ( string | User $userId, string $maxId = null ) : UserTagsFeedResponse Fetch User Tags Feed
initFromSavedSession ( $session ) Initialize the Instagram instance from a previously saved session
isLoggedIn ( ) : boolean
likeMedia ( string | FeedItem $mediaId ) : API\Response\LikeMediaResponse Like Media
login ( $username, $password ) : LoginResponse Login to Instagram with Credentials
logout ( ) : API\Response\LogoutResponse Logout
postPhoto ( string $path, string $caption = null ) : ConfigureMediaResponse Post Photo to Timeline
removeProfilePicture ( ) : ChangeProfilePictureAccountResponse Remove Profile Picture
saveSession ( ) : string Save the current Instagram session to a JSON string
searchFacebookPlaces ( string $query ) : PlacesFacebookSearchResponse Search Facebook Places
searchFacebookPlacesByLocation ( string $latitude, string $longitude ) : PlacesFacebookSearchResponse Search Facebook Places by Location
searchTags ( string $query ) : SearchTagsResponse Search Tags
searchUsers ( string $query ) : SearchUsersResponse Search Users
setAccountPrivate ( ) : SetPrivateAccountResponse Set Account as Private
setAccountPublic ( ) : SetPublicAccountResponse Set Account as Public
setCookies ( array $cookies )
setCsrfToken ( string $csrfToken )
setDeviceId ( string $deviceId )
setGoogleAdId ( string $googleAdId )
setGuid ( string $guid )
setLoggedInUser ( User $loggedInUser )
setPhoneId ( string $phoneId )
setProxy ( $proxy, string $username = null, string $password = null ) Set the HTTP Proxy to be used for Instagram API Requests
setRankToken ( string $rankToken )
setUuid ( string $uuid )
setVerifyPeer ( $verifyPeer ) Enable/Disable SSL Verification of Peer
setupAsNewDevice ( ) Setup this instance with a fresh GUID, UUID and Phone ID.
shouldVerifyPeer ( ) : string SSL Verification of Peer
showFriendship ( string | User $userId ) : ShowFriendshipResponse Show Friendship between User
unblockUser ( string | User $userId ) : UnblockFriendshipResponse Unblock User
unfollowUser ( string | User $userId ) : DestroyFriendshipResponse Unfollow User
unlikeMedia ( string | FeedItem $mediaId ) : API\Response\UnlikeMediaResponse Unlike Media

메소드 상세

__construct() 공개 메소드

public __construct ( )

blockUser() 공개 메소드

Block User
public blockUser ( string | User $userId ) : BlockFriendshipResponse
$userId string | Instagram\API\Response\Model\User User or User Id to Block
리턴 Instagram\API\Response\BlockFriendshipResponse

changeProfilePicture() 공개 메소드

Change Profile Picture
public changeProfilePicture ( string $path ) : ChangeProfilePictureAccountResponse
$path string File path of Profile Picture to Upload
리턴 Instagram\API\Response\ChangeProfilePictureAccountResponse

commentOnMedia() 공개 메소드

Comment on Media
public commentOnMedia ( string | FeedItem $mediaId, string $comment ) : CommentMediaResponse
$mediaId string | Instagram\API\Response\Model\FeedItem FeedItem or FeedItem Id to Comment on
$comment string Comment
리턴 Instagram\API\Response\CommentMediaResponse

deleteCommentsFromMedia() 공개 메소드

Delete Media Comments
public deleteCommentsFromMedia ( string | FeedItem $mediaId, array $commentIds ) : API\Response\BulkDeleteCommentsMediaResponse
$mediaId string | Instagram\API\Response\Model\FeedItem FeedItem or FeedItem Id to Delete Comments from
$commentIds array Array of Comment Ids to Delete
리턴 API\Response\BulkDeleteCommentsMediaResponse

deleteMedia() 공개 메소드

Delete Media
public deleteMedia ( string | FeedItem $mediaId, string $mediaType ) : DeleteMediaResponse
$mediaId string | Instagram\API\Response\Model\FeedItem FeedItem or FeedItem Id to Delete
$mediaType string Media Type (Constants available in DeleteMediaRequest class)
리턴 Instagram\API\Response\DeleteMediaResponse

editMedia() 공개 메소드

Edit Media
public editMedia ( string | FeedItem $mediaId, string $caption = null ) : EditMediaResponse
$mediaId string | Instagram\API\Response\Model\FeedItem FeedItem or FeedItem Id to Edit
$caption string Caption for this Media
리턴 Instagram\API\Response\EditMediaResponse

editUserProfile() 공개 메소드

Edit User Profile
public editUserProfile ( string $firstname = null, string $email = null, string $phoneNumber = null, integer $gender = null, string $biography = null, string $externalUrl = null ) : EditProfileAccountResponse
$firstname string First Name
$email string Email
$phoneNumber string Phone Number
$gender integer Gender (Constants available in User class)
$biography string Biography
$externalUrl string External Url
리턴 Instagram\API\Response\EditProfileAccountResponse

followUser() 공개 메소드

Follow User
public followUser ( string | User $userId ) : CreateFriendshipResponse
$userId string | Instagram\API\Response\Model\User User or User Id to Follow
리턴 Instagram\API\Response\CreateFriendshipResponse

generateDeviceId() 공개 메소드

public generateDeviceId ( $seed ) : string
$seed
리턴 string

getCSRFToken() 공개 메소드

public getCSRFToken ( ) : string
리턴 string

getCookies() 공개 메소드

public getCookies ( ) : array
리턴 array

getCurrentUserAccount() 공개 메소드

Get Current User Account
public getCurrentUserAccount ( ) : CurrentUserAccountResponse
리턴 Instagram\API\Response\CurrentUserAccountResponse

getDeviceId() 공개 메소드

public getDeviceId ( ) : string
리턴 string

getGUID() 공개 메소드

public getGUID ( ) : string
리턴 string

getGoogleAdId() 공개 메소드

public getGoogleAdId ( ) : string
리턴 string

getLikedFeed() 공개 메소드

Fetch Liked Feed
public getLikedFeed ( string $maxId = null ) : LikedFeedResponse
$maxId string Next Maximum Id, used for Pagination
리턴 Instagram\API\Response\LikedFeedResponse

getLocationFeed() 공개 메소드

Fetch Location Feed
public getLocationFeed ( string | Location $locationId, string $maxId = null ) : LocationFeedResponse
$locationId string | Instagram\API\Response\Model\Location Location or Location Id to get Feed of
$maxId string Next Maximum Id, used for Pagination
리턴 Instagram\API\Response\LocationFeedResponse

getLoggedInUser() 공개 메소드

public getLoggedInUser ( ) : User
리턴 Instagram\API\Response\Model\User

getMediaComments() 공개 메소드

Get Media Comments
public getMediaComments ( string | FeedItem $mediaId, string $maxId ) : CommentsMediaResponse
$mediaId string | Instagram\API\Response\Model\FeedItem FeedItem or FeedItem Id of Media to get Comments from
$maxId string Next Maximum Id, used for Pagination
리턴 Instagram\API\Response\CommentsMediaResponse

getMediaInfo() 공개 메소드

Get Media Info
public getMediaInfo ( string | FeedItem $mediaId ) : InfoMediaResponse
$mediaId string | Instagram\API\Response\Model\FeedItem FeedItem or FeedItem Id to get Info of
리턴 Instagram\API\Response\InfoMediaResponse

getMyUserFeed() 공개 메소드

Fetch My User Feed
public getMyUserFeed ( string $maxId = null ) : UserFeedResponse
$maxId string Next Maximum Id, used for Pagination
리턴 Instagram\API\Response\UserFeedResponse

getPhoneId() 공개 메소드

public getPhoneId ( ) : string
리턴 string

getProxy() 공개 메소드

Get the HTTP Proxy to be used for Instagram API Requests
public getProxy ( ) : string
리턴 string

getProxyCredentials() 공개 메소드

Get the HTTP Proxy Credentials to be used for Instagram API Requests
public getProxyCredentials ( ) : string
리턴 string

getRankToken() 공개 메소드

public getRankToken ( ) : string
리턴 string

getTagFeed() 공개 메소드

Fetch Tag Feed
public getTagFeed ( string $tag, string $maxId = null ) : TagFeedResponse
$tag string Tag
$maxId string Next Maximum Id, used for Pagination
리턴 Instagram\API\Response\TagFeedResponse

getTimelineFeed() 공개 메소드

Fetch Timeline Feed
public getTimelineFeed ( string $maxId = null ) : TimelineFeedResponse
$maxId string Next Maximum Id, used for Pagination
리턴 Instagram\API\Response\TimelineFeedResponse

getUUID() 공개 메소드

public getUUID ( ) : string
리턴 string

getUserByUsername() 공개 메소드

Get User by Username
public getUserByUsername ( string $username ) : User
$username string Username to find User by
리턴 Instagram\API\Response\Model\User

getUserFeed() 공개 메소드

Fetch User Feed
public getUserFeed ( string | User $userId, string $maxId = null ) : UserFeedResponse
$userId string | Instagram\API\Response\Model\User User or User Id to get Feed of
$maxId string Next Maximum Id, used for Pagination
리턴 Instagram\API\Response\UserFeedResponse

getUserFollowers() 공개 메소드

Get User Followers
public getUserFollowers ( string | User $userId, string $maxId ) : FollowersFriendshipResponse
$userId string | Instagram\API\Response\Model\User User or User Id to get Followers of
$maxId string Next Maximum Id, used for Pagination
리턴 Instagram\API\Response\FollowersFriendshipResponse

getUserFollowing() 공개 메소드

Get User Following
public getUserFollowing ( string | User $userId, string $maxId ) : FollowingFriendshipResponse
$userId string | Instagram\API\Response\Model\User User or User Id to get Following of
$maxId string Next Maximum Id, used for Pagination
리턴 Instagram\API\Response\FollowingFriendshipResponse

getUserInfo() 공개 메소드

Get User Info
public getUserInfo ( string | User $userId ) : InfoUserResponse
$userId string | Instagram\API\Response\Model\User User or User Id to get Info of
리턴 Instagram\API\Response\InfoUserResponse

getUserMap() 공개 메소드

Get GeoMedia from Map of User
public getUserMap ( string | User $userId ) : UserMapResponse
$userId string | Instagram\API\Response\Model\User User or User Id to get GeoMedia of
리턴 Instagram\API\Response\UserMapResponse

getUserRankToken() 공개 메소드

public getUserRankToken ( ) : string
리턴 string

getUserTagsFeed() 공개 메소드

Fetch User Tags Feed
public getUserTagsFeed ( string | User $userId, string $maxId = null ) : UserTagsFeedResponse
$userId string | Instagram\API\Response\Model\User User of User Id to get Tags Feed of
$maxId string Next Maximum Id, used for Pagination
리턴 Instagram\API\Response\UserTagsFeedResponse

initFromSavedSession() 공개 메소드

Initialize the Instagram instance from a previously saved session
또한 보기: Instagram::saveSession()
public initFromSavedSession ( $session )
$session string Instagram session JSON

isLoggedIn() 공개 메소드

public isLoggedIn ( ) : boolean
리턴 boolean

likeMedia() 공개 메소드

Like Media
public likeMedia ( string | FeedItem $mediaId ) : API\Response\LikeMediaResponse
$mediaId string | Instagram\API\Response\Model\FeedItem FeedItem or FeedItem Id to Like
리턴 API\Response\LikeMediaResponse

login() 공개 메소드

Login to Instagram with Credentials
public login ( $username, $password ) : LoginResponse
$username string Instagram Username
$password string Instagram Password
리턴 Instagram\API\Response\LoginResponse

logout() 공개 메소드

Logout
public logout ( ) : API\Response\LogoutResponse
리턴 API\Response\LogoutResponse

postPhoto() 공개 메소드

Post Photo to Timeline
public postPhoto ( string $path, string $caption = null ) : ConfigureMediaResponse
$path string File path of Photo to Post
$caption string Caption for this Photo
리턴 Instagram\API\Response\ConfigureMediaResponse

removeProfilePicture() 공개 메소드

Remove Profile Picture
public removeProfilePicture ( ) : ChangeProfilePictureAccountResponse
리턴 Instagram\API\Response\ChangeProfilePictureAccountResponse

saveSession() 공개 메소드

Save the current Instagram session to a JSON string
또한 보기: Instagram::initFromSavedSession()
public saveSession ( ) : string
리턴 string Instagram session as JSON string

searchFacebookPlaces() 공개 메소드

Search Facebook Places
public searchFacebookPlaces ( string $query ) : PlacesFacebookSearchResponse
$query string Place to Search for
리턴 Instagram\API\Response\PlacesFacebookSearchResponse

searchFacebookPlacesByLocation() 공개 메소드

Search Facebook Places by Location
public searchFacebookPlacesByLocation ( string $latitude, string $longitude ) : PlacesFacebookSearchResponse
$latitude string Latitude
$longitude string Longitude
리턴 Instagram\API\Response\PlacesFacebookSearchResponse

searchTags() 공개 메소드

Search Tags
public searchTags ( string $query ) : SearchTagsResponse
$query string Tag to Search for
리턴 Instagram\API\Response\SearchTagsResponse

searchUsers() 공개 메소드

Search Users
public searchUsers ( string $query ) : SearchUsersResponse
$query string User to Search for
리턴 Instagram\API\Response\SearchUsersResponse

setAccountPrivate() 공개 메소드

Set Account as Private
public setAccountPrivate ( ) : SetPrivateAccountResponse
리턴 Instagram\API\Response\SetPrivateAccountResponse

setAccountPublic() 공개 메소드

Set Account as Public
public setAccountPublic ( ) : SetPublicAccountResponse
리턴 Instagram\API\Response\SetPublicAccountResponse

setCookies() 공개 메소드

public setCookies ( array $cookies )
$cookies array

setCsrfToken() 공개 메소드

public setCsrfToken ( string $csrfToken )
$csrfToken string

setDeviceId() 공개 메소드

public setDeviceId ( string $deviceId )
$deviceId string

setGoogleAdId() 공개 메소드

public setGoogleAdId ( string $googleAdId )
$googleAdId string

setGuid() 공개 메소드

public setGuid ( string $guid )
$guid string

setLoggedInUser() 공개 메소드

public setLoggedInUser ( User $loggedInUser )
$loggedInUser Instagram\API\Response\Model\User

setPhoneId() 공개 메소드

public setPhoneId ( string $phoneId )
$phoneId string

setProxy() 공개 메소드

Set the HTTP Proxy to be used for Instagram API Requests
public setProxy ( $proxy, string $username = null, string $password = null )
$proxy string Proxy
$username string Proxy Username
$password string Proxy Password

setRankToken() 공개 메소드

public setRankToken ( string $rankToken )
$rankToken string

setUuid() 공개 메소드

public setUuid ( string $uuid )
$uuid string

setVerifyPeer() 공개 메소드

Enable/Disable SSL Verification of Peer
public setVerifyPeer ( $verifyPeer )
$verifyPeer boolean

setupAsNewDevice() 공개 메소드

Setup this instance with a fresh GUID, UUID and Phone ID.
public setupAsNewDevice ( )

shouldVerifyPeer() 공개 메소드

SSL Verification of Peer
public shouldVerifyPeer ( ) : string
리턴 string

showFriendship() 공개 메소드

Show Friendship between User
public showFriendship ( string | User $userId ) : ShowFriendshipResponse
$userId string | Instagram\API\Response\Model\User User or User Id to show Friendship between
리턴 Instagram\API\Response\ShowFriendshipResponse

unblockUser() 공개 메소드

Unblock User
public unblockUser ( string | User $userId ) : UnblockFriendshipResponse
$userId string | Instagram\API\Response\Model\User User or User Id to Unblock
리턴 Instagram\API\Response\UnblockFriendshipResponse

unfollowUser() 공개 메소드

Unfollow User
public unfollowUser ( string | User $userId ) : DestroyFriendshipResponse
$userId string | Instagram\API\Response\Model\User User or User Id to Unfollow
리턴 Instagram\API\Response\DestroyFriendshipResponse

unlikeMedia() 공개 메소드

Unlike Media
public unlikeMedia ( string | FeedItem $mediaId ) : API\Response\UnlikeMediaResponse
$mediaId string | Instagram\API\Response\Model\FeedItem FeedItem or FeedItem Id to Unlike
리턴 API\Response\UnlikeMediaResponse