Skip to content

Commit f889a68

Browse files
authored
Merge pull request #21 from denis-skripnik/master
Change connectors and commands
2 parents f922743 + 965a505 commit f889a68

10 files changed

+148
-0
lines changed

Commands/GolosApiMethods.php

+26
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,16 @@ class GolosApiMethods
111111
'*:parent_permlink' => ['nullOrString'] //the permlink of parent discussion
112112
]
113113
],
114+
'get_discussions_by_comments' => [
115+
'apiName' => 'tags',
116+
'fields' => [
117+
'*:limit' => ['integer'], //the discussions return amount top limit
118+
'*:truncate_body' => ['nullOrInteger'], //the amount of bytes of the post body to return, 0 for all
119+
'*:start_author' => ['nullOrString'], //the author of discussion to start searching from
120+
'*:start_permlink' => ['nullOrString'], //the permlink of discussion to start searching from
121+
'*:voteLimit' => ['nullOrInteger'] //voteLimit by default 10 000
122+
]
123+
],
114124
'get_discussions_by_created' => [
115125
'apiName' => 'tags',
116126
'fields' => [
@@ -155,6 +165,11 @@ class GolosApiMethods
155165
'fields' => [
156166
]
157167
],
168+
'get_feed_history' => [
169+
'apiName' => 'witness_api',
170+
'fields' => [
171+
]
172+
],
158173
'get_ops_in_block' => [
159174
'apiName' => 'operation_history',
160175
'fields' => [
@@ -185,11 +200,22 @@ class GolosApiMethods
185200
'3' => ['integer'], //limit
186201
]
187202
],
203+
'get_follow_count' => [
204+
'apiName' => 'follow',
205+
'fields' => [
206+
'0' => ['string'], //author
207+
]
208+
],
188209
'get_version' => [
189210
'apiName' => 'login_api',
190211
'fields' => [
191212
]
192213
],
214+
'get_ticker' => [
215+
'apiName' => 'market_history',
216+
'fields' => [
217+
]
218+
],
193219
'broadcast_transaction' => [
194220
'apiName' => 'network_broadcast_api',
195221
'fields' => [
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
4+
namespace GrapheneNodeClient\Commands\Single;
5+
6+
7+
class GetFeedHistoryCommand extends CommandAbstract
8+
{
9+
/** @var string */
10+
protected $method = 'get_feed_history';
11+
}
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
4+
namespace GrapheneNodeClient\Commands\Single;
5+
6+
7+
class GetFollowCountCommand extends CommandAbstract
8+
{
9+
/** @var string */
10+
protected $method = 'get_follow_count';
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
4+
namespace GrapheneNodeClient\Commands\Single;
5+
6+
7+
class getDiscussionsByCommentsCommand extends CommandAbstract
8+
{
9+
/** @var string */
10+
protected $method = 'get_discussions_by_comments';
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
4+
namespace GrapheneNodeClient\Commands\Single;
5+
6+
7+
class getDiscussionsByContentsCommand extends CommandAbstract
8+
{
9+
/** @var string */
10+
protected $method = 'get_discussions_by_contents';
11+
}
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
4+
namespace GrapheneNodeClient\Commands\Single;
5+
6+
7+
class getRewardFundCommand extends CommandAbstract
8+
{
9+
/** @var string */
10+
protected $method = 'get_reward_fund';
11+
}

Commands/Single/getTickerCommand.php

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
4+
namespace GrapheneNodeClient\Commands\Single;
5+
6+
7+
class getTickerCommand extends CommandAbstract
8+
{
9+
/** @var string */
10+
protected $method = 'get_ticker';
11+
}

Commands/SteemitApiMethods.php

+30
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,14 @@ class SteemitApiMethods
102102
'*:start_permlink' => ['nullOrString'] //'start_permlink' for pagination,
103103
]
104104
],
105+
'get_discussions_by_comments' => [
106+
'apiName' => 'database_api',
107+
'fields' => [
108+
'*:limit' => ['integer'], //'limit'
109+
'*:start_author' => ['nullOrString'], //'start_author' for pagination,
110+
'*:start_permlink' => ['nullOrString'] //'start_permlink' for pagination,
111+
]
112+
],
105113
'get_discussions_by_created' => [
106114
'apiName' => 'database_api',
107115
'fields' => [
@@ -134,13 +142,30 @@ class SteemitApiMethods
134142
'fields' => [
135143
]
136144
],
145+
'get_feed_history' => [
146+
'apiName' => 'witness_api',
147+
'fields' => [
148+
]
149+
],
150+
'get_follow_count' => [
151+
'apiName' => 'follow_api',
152+
'fields' => [
153+
'0' => ['string'], //author
154+
]
155+
],
137156
'get_ops_in_block' => [
138157
'apiName' => 'database_api',
139158
'fields' => [
140159
'0' => ['integer'], //blockNum
141160
'1' => ['bool'], //onlyVirtual
142161
]
143162
],
163+
'get_reward_fund' => [
164+
'apiName' => 'database_api',
165+
'fields' => [
166+
'0' => ['string'], //post or comments
167+
]
168+
],
144169
'get_trending_categories' => [
145170
'apiName' => 'database_api',
146171
'fields' => [
@@ -189,6 +214,11 @@ class SteemitApiMethods
189214
'0' => ['string'], //'api_name',for example follow_api, database_api, login_api and ect.
190215
]
191216
],
217+
'get_ticker' => [
218+
'apiName' => 'market_history',
219+
'fields' => [
220+
]
221+
],
192222
'broadcast_transaction' => [
193223
'apiName' => 'network_broadcast_api',
194224
'fields' => [

Commands/VizApiMethods.php

+6
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,12 @@ class VizApiMethods
180180
'3' => ['integer'], //limit
181181
]
182182
],
183+
'get_follow_count' => [
184+
'apiName' => 'follow',
185+
'fields' => [
186+
'0' => ['string'], //author
187+
]
188+
],
183189
'broadcast_transaction' => [
184190
'apiName' => 'network_broadcast_api',
185191
'fields' => [

Commands/WhalesharesApiMethods.php

+20
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ class WhalesharesApiMethods
9797
'*:start_permlink' => ['nullOrString'] //'start_permlink' for pagination,
9898
]
9999
],
100+
'get_discussions_by_comments' => [
101+
'apiName' => 'database_api',
102+
'fields' => [
103+
'*:limit' => ['integer'], //'limit'
104+
'*:start_author' => ['nullOrString'], //'start_author' for pagination,
105+
'*:start_permlink' => ['nullOrString'] //'start_permlink' for pagination,
106+
]
107+
],
100108
'get_discussions_by_created' => [
101109
'apiName' => 'database_api',
102110
'fields' => [
@@ -129,13 +137,25 @@ class WhalesharesApiMethods
129137
'fields' => [
130138
]
131139
],
140+
'get_follow_count' => [
141+
'apiName' => 'follow_api',
142+
'fields' => [
143+
'0' => ['string'], //author
144+
]
145+
],
132146
'get_ops_in_block' => [
133147
'apiName' => 'database_api',
134148
'fields' => [
135149
'0' => ['integer'], //blockNum
136150
'1' => ['bool'], //onlyVirtual
137151
]
138152
],
153+
'get_reward_fund' => [
154+
'apiName' => 'database_api',
155+
'fields' => [
156+
'0' => ['string'], //post or comments
157+
]
158+
],
139159
'get_trending_categories' => [
140160
'apiName' => 'database_api',
141161
'fields' => [

0 commit comments

Comments
 (0)