Download the PHP package dansup/pixelfed-php without Composer
On this page you can find all versions of the php package dansup/pixelfed-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dansup/pixelfed-php
More information about dansup/pixelfed-php
Files in dansup/pixelfed-php
Package pixelfed-php
Short Description Pixelfed PHP SDK
License AGPL-3.0-only
Homepage https://github.com/dansup/pixelfed-php
Informations about the package pixelfed-php
Pixelfed PHP Library
PHP Library for Pixelfed
Installation
Install with Composer
Authentication
You need a token from a Pixelfed instance. Navigate to on the Pixelfed instance and generate a new . Use that token for authentication.
Examples
Nodeinfo
Methods
user()
Returns current user.
GET /api/v1/accounts/verify_credentials
AUTHENTICATION REQUIRED
accountById($id)
Fetch account by user id.
GET /api/v1/accounts/{$id}
AUTHENTICATION REQUIRED
accountFollowersById($id)
Fetch account followers by user id.
GET /api/v1/accounts/{$id}/followers
AUTHENTICATION REQUIRED
accountFollowingById($id)
Fetch account following by user id.
GET /api/v1/accounts/{$id}/following
AUTHENTICATION REQUIRED
accountStatusesById($id)
Fetch account statuses by user id.
GET /api/v1/accounts/{$id}/statuses
AUTHENTICATION REQUIRED
accountSearch($id)
Fetch accounts by search query.
GET /api/v1/accounts/search?q={$id}
AUTHENTICATION REQUIRED
accountBlocks()
Fetch account blocks of current user.
GET /api/v1/blocks
AUTHENTICATION REQUIRED
accountLikes()
Fetch likes of current user.
GET /api/v1/favourites
AUTHENTICATION REQUIRED
accountFollowRequests()
Fetch follow requests of current user.
GET /api/v1/follow_requests
AUTHENTICATION REQUIRED
instance()
Fetch pixelfed instance data.
GET /api/v1/instance
AUTHENTICATION REQUIRED
accountMutes()
Fetch account mutes of current user.
GET /api/v1/mutes
AUTHENTICATION REQUIRED
accountNotifications()
Fetch notifications of current user.
GET /api/v1/notifications
AUTHENTICATION REQUIRED
homeTimeline()
Fetch home timeline.
GET /api/v1/timelines/home
AUTHENTICATION REQUIRED
publicTimeline()
Fetch public timeline.
GET /api/v1/timelines/public
AUTHENTICATION REQUIRED
statusById($id)
Fetch status by id.
GET /api/v1/statuses/{$id}
AUTHENTICATION REQUIRED
statusRebloggedById($id)
Fetch reblogs/shares by status id.
GET /api/v1/statuses/{$id}/reblogged_by
AUTHENTICATION REQUIRED
statusLikedById($id)
Fetch likes by status id.
GET /api/v1/statuses/{$id}/favourited_by
AUTHENTICATION REQUIRED
followAccountById($id)
Follow account by id.
POST /api/v1/accounts/{$id}/follow
AUTHENTICATION REQUIRED
unfollowAccountById($id)
Unfollow account by id.
POST /api/v1/accounts/{$id}/unfollow
AUTHENTICATION REQUIRED
accountBlockById($id)
Block account by id.
POST /api/v1/accounts/{$id}/block
AUTHENTICATION REQUIRED
accountUnblockById($id)
Unblock account by id.
POST /api/v1/accounts/{$id}/unblock
AUTHENTICATION REQUIRED
statusFavouriteById($id)
Like status by id.
POST /api/v1/statuses/{$id}/favourite
AUTHENTICATION REQUIRED
statusUnfavouriteById($id)
Unlike status by id.
POST /api/v1/statuses/{$id}/unfavourite
AUTHENTICATION REQUIRED
mediaUpload($file)
Upload media.
POST /api/v1/media
AUTHENTICATION REQUIRED
accountMuteById($id)
Mute account by id.
POST /api/v1/accounts/{$id}/mute
AUTHENTICATION REQUIRED
accountUnmuteById($id)
Unmute account by id.
POST /api/v1/accounts/{$id}/unmute
AUTHENTICATION REQUIRED
statusCreate($mediaIds = [], $caption = null, $sensitive = false, $scope = 'public', $inReplyToId = null)
Create new status, requires from
POST /api/v1/statuses
AUTHENTICATION REQUIRED
nodeinfo()
Fetch instance nodeinfo.
GET /api/nodeinfo/2.0.json
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
- Daniel Supernault
- All Contributors