We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b12e74e commit a31cf30Copy full SHA for a31cf30
api_calls/helper.php
@@ -6,8 +6,10 @@ function apiCall($comments, $keyword)
6
global $repustateEndPoint;
7
$command = "curl -d topics=$keyword'";
8
$text = "";
9
+ $c = 0;
10
foreach ($comments as $key => $comment){
- // $key = $key+1;
11
+ if($c++ > 5) //To avoid articles with large number of comments to eat up api limits
12
+ break;
13
$comment = str_replace("'", '', $comment);
14
$text .= "text$key=$comment&";
15
}
0 commit comments