New structure of commands [php-graphene-node-client]
In my pull requests new structure of commands. This is due to changes in the GOLOS blockchain.
Old way to get information from blockchain:
$commandQuery = new CommandQueryData();
$commandQuery->setParamByKey('0', $author);
$commandQuery->setParamByKey('1', $permlink);
$command = new GetContentCommand(new GolosApiWsConnector());
$content = $command->execute($commandQuery);
New way:
$commandQuery = new CommandQueryData();
$commandQuery->setParamByKey('0', $author);
$commandQuery->setParamByKey('1', $permlink);
$command = new Command(new GolosApiWsConnector());
$command = $command->get_content();
$content = $command->execute($commandQuery);
Links to pull requests:
- https://github.com/t3ran13/php-graphene-node-client/pull/12
- https://github.com/t3ran13/php-graphene-node-client/pull/11
Posted on Utopian.io - Rewarding Open Source Contributors
Thank you for the contribution. It has been approved.
Need help? Write a ticket on https://support.utopian.io.
Chat with us on Discord.
[utopian-moderator]
Hey @semasping I am @utopian-io. I have just upvoted you!
Achievements
Utopian Witness!
Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x