create account

Recall to API And reserve nodes [php-graphene-node-client v2.3.2] by php-node-client

View this thread on: hive.blogpeakd.comecency.com
· @php-node-client ·
$14.22
Recall to API And reserve nodes [php-graphene-node-client v2.3.2]
It is updated to solve error answers from API

### WSConnectorAbstract.php was updated
- possibility to recall to API when getting error in answer (default $maxNumberOfTriesToCallApi = 3)
- possibility to connetc to reserve nodes (after $maxNumberOfTriesToCallApi tries recall you can connect to reserve nodes)

### Use

```php
<?php

namespace My\App\Commands;

use GrapheneNodeClient\Commands\DataBase\CommandAbstract;
use GrapheneNodeClient\Connectors\ConnectorInterface;

class GolosWSConnector extends WSConnectorAbstract
{
    /**
     * @var string
     */
    protected $platform = self::PLATFORM_GOLOS;

    /**
     * max number of tries to get answer from the node
     *
     * @var int
     */
    protected $maxNumberOfTriesToCallApi = 3;

    /**
     * wss or ws servers, can be list. First node is default, other are reserve.
     * After $maxNumberOfTriesToCallApi tries connects to default it is connected to reserve node.
     *
     * @var string|array
     */
    protected $nodeURL = ['wss://ws.golos.io', 'wss://api.golos.cf'];
}


```  

	
-------
	
[Github](https://github.com/t3ran13/php-graphene-node-client) or [packagist](https://packagist.org/packages/t3ran13/php-graphene-node-client) with MIT license. Author @t3ran13

It is better with each commit

@transisto add it to steemtools.com please
👍  , , , , , , , , , , ,
properties (23)
authorphp-node-client
permlinkrecall-to-api-and-reserve-nodes-php-graphene-node-client-v2-3-2
categoryopensource
json_metadata{"tags":["opensource","steemit","api","steemtools","php"],"users":["t3ran13","transisto"],"links":["https://github.com/t3ran13/php-graphene-node-client","https://packagist.org/packages/t3ran13/php-graphene-node-client"],"app":"steemit/0.1","format":"markdown"}
created2017-10-23 17:26:03
last_update2017-10-23 17:26:03
depth0
children5
last_payout2017-10-30 17:26:03
cashout_time1969-12-31 23:59:59
total_payout_value12.431 HBD
curator_payout_value1.788 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,325
author_reputation574,145,594,155
root_title"Recall to API And reserve nodes [php-graphene-node-client v2.3.2]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id18,387,369
net_rshares6,187,105,589,365
author_curate_reward""
vote details (12)
@asmaasema · (edited)
What a good content!..
Greeeat :)
properties (22)
authorasmaasema
permlinkre-php-node-client-recall-to-api-and-reserve-nodes-php-graphene-node-client-v2-3-2-20171024t101851593z
categoryopensource
json_metadata{"tags":["opensource"],"app":"steemit/0.1"}
created2017-10-24 10:19:30
last_update2017-10-24 10:19:54
depth1
children0
last_payout2017-10-31 10:19:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length33
author_reputation73,734,759,790
root_title"Recall to API And reserve nodes [php-graphene-node-client v2.3.2]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id18,443,301
net_rshares0
@minnowbooster ·
@minnowbooster upvoted this post!
![Calling @originalworks :)](http://minnowshares.net/upgoat/?user=t3ran13&receiver=php-node-client&sender=minnowbooster&value=14.27&hash=998)
*<sub>img credz: pixabay.com</sub>*
*Nice, you got a 6.0% @minnowbooster upgoat, thanks to @t3ran13*
*Want a boost? [Minnowbooster's](https://steemit.com/minnowbooster/@minnowbooster/6rt2mn-introducing-minnowbooster-beta) got your back!*
    
👍  
properties (23)
authorminnowbooster
permlinkcomment-1508780490302
categoryopensource
json_metadata""
created2017-10-23 17:41:30
last_update2017-10-23 17:41:30
depth1
children1
last_payout2017-10-30 17:41:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length385
author_reputation230,546,282,483,083
root_title"Recall to API And reserve nodes [php-graphene-node-client v2.3.2]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id18,388,385
net_rshares1,217,410,354
author_curate_reward""
vote details (1)
@originalworks ·
originalworks
The @OriginalWorks bot has determined this post by @php-node-client to be original material and upvoted it! 
<center>![ezgif.com-resize.gif](https://steemitimages.com/DQmaBi37A5oTnQ9NBLH8YU4jpvhhmFauyvgg3YRrEJwskM9/ezgif.com-resize.gif)</center> 

To call @OriginalWorks, simply reply to any post with @originalworks or !originalworks in your message! 
For more information, [Click Here!](https://steemit.com/writing/@originalworks/originalworks-bot-explanation-and-info)
Special thanks to @reggaemuffin for being a supporter! Vote him as a witness to help make Steemit a better place! 
properties (22)
authororiginalworks
permlinkre-comment-1508780490302-20171023t174522
categoryopensource
json_metadata"{"app": "pysteem/0.5.4"}"
created2017-10-23 17:45:24
last_update2017-10-23 17:45:24
depth2
children0
last_payout2017-10-30 17:45:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length586
author_reputation79,292,026,602,057
root_title"Recall to API And reserve nodes [php-graphene-node-client v2.3.2]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id18,388,635
net_rshares0
@steemitboard ·
Congratulations @php-node-client! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/firstcomment.png)](http://steemitboard.com/@php-node-client) You made your First Comment
[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/voted.png)](http://steemitboard.com/@php-node-client) Award for the number of upvotes received

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click [here](https://steemit.com/@steemitboard)

If you no longer want to receive notifications, reply to this comment with the word `STOP`

> By upvoting this notification, you can help all Steemit users. Learn how [here](https://steemit.com/steemitboard/@steemitboard/http-i-cubeupload-com-7ciqeo-png)!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-php-node-client-20171023t202509000z
categoryopensource
json_metadata{"image":["https://steemitboard.com/img/notifications.png"]}
created2017-10-23 20:25:09
last_update2017-10-23 20:25:09
depth1
children0
last_payout2017-10-30 20:25:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length873
author_reputation38,975,615,169,260
root_title"Recall to API And reserve nodes [php-graphene-node-client v2.3.2]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id18,399,294
net_rshares0
@steemitboard ·
Congratulations @php-node-client! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/payout.png)](http://steemitboard.com/@php-node-client) Award for the total payout received

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click [here](https://steemit.com/@steemitboard)

If you no longer want to receive notifications, reply to this comment with the word `STOP`

> By upvoting this notification, you can help all Steemit users. Learn how [here](https://steemit.com/steemitboard/@steemitboard/http-i-cubeupload-com-7ciqeo-png)!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-php-node-client-20171108t160632000z
categoryopensource
json_metadata{"image":["https://steemitboard.com/img/notifications.png"]}
created2017-11-08 16:06:30
last_update2017-11-08 16:06:30
depth1
children0
last_payout2017-11-15 16:06:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length705
author_reputation38,975,615,169,260
root_title"Recall to API And reserve nodes [php-graphene-node-client v2.3.2]"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id19,793,279
net_rshares0