Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions uclassify.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
class uClassify {

// private properties
private $baseUrl = 'http://uclassify.com/browse/';
private $baseUrl = 'https://uclassify.com/browse/';
private $provider = "uClassify";
private $readkey = '***YOUR_READ_KEY***';
private $removeHTML = 1;
Expand Down Expand Up @@ -130,7 +130,7 @@ public function classifyUrl($url) {
public function classifyText($txt) {
// assemble the query string
$qs = $this->baseUrl.$this->provider."/".ucwords($this->classifier).'/ClassifyText/?readkey='.urlencode($this->readkey).
'&text='.urlencode($url).'&removeHtml='.$this->removeHTML.'&output='.$this->encoding."&version=".$this->version;
'&text='.urlencode($txt).'&removeHtml='.$this->removeHTML.'&output='.$this->encoding."&version=".$this->version;

// instantiate cUrl
$curl = curl_init($qs);
Expand All @@ -147,4 +147,4 @@ public function classifyText($txt) {
return $data;
}
}
?>
?>