PHP 8 / Composer tools for twister P2P JSON-RPC API
composer require twisterarmy/twister
Implements JSON-RPC API
$client = new \Twisterarmy\Twister\Client('http', 'localhost', 28332, 'user', 'pwd');
var_dump(
$client->getPosts(
[
'twisterarmy'
]
)
);
See the src/Client.php
source for more details!
importWallet
getBlockHash
getBlock
getPosts
getPostK
follow
unFollow
getFollowing
getDHTProfileRevisions
getDHTAvatarRevisions
putDHT
createWalletUser
sendNewUserTransaction
newPostMessage
newRetwistMessage
$array = \Twisterarmy\Twister\Tools\Atom::feed('url');
$array = \Twisterarmy\Twister\Tools\Rss::feed('url');
url
- feed addressformat
-{title} {link}
by default{nl}
- new line{title}
- item title{link}
- target link
length
-256
by defaulterrors
- array of errors
[
time: int,
message: string
],
...