| @@ 188-197 (lines=10) @@ | ||
| 185 | return $data['results'][$this->getHash($shortUrl)]['longUrl']; |
|
| 186 | } |
|
| 187 | ||
| 188 | public function getInfoArray($url) |
|
| 189 | { |
|
| 190 | $this->setReturnFormat('json'); |
|
| 191 | $json = $this->info($url); |
|
| 192 | $this->restoreFormat(); |
|
| 193 | $data = json_decode($json, true); |
|
| 194 | ||
| 195 | $this->infoArray = array_pop($data['results']); |
|
| 196 | return $this->infoArray; |
|
| 197 | } |
|
| 198 | ||
| 199 | public function getStatsArray($url) |
|
| 200 | { |
|
| @@ 199-207 (lines=9) @@ | ||
| 196 | return $this->infoArray; |
|
| 197 | } |
|
| 198 | ||
| 199 | public function getStatsArray($url) |
|
| 200 | { |
|
| 201 | $this->setReturnFormat('json'); |
|
| 202 | $json = $this->stats($url); |
|
| 203 | $this->restoreFormat(); |
|
| 204 | $data = json_decode($json, true); |
|
| 205 | $this->statsArray = $data['results']; |
|
| 206 | return $this->statsArray; |
|
| 207 | } |
|
| 208 | ||
| 209 | public function getClicks() |
|
| 210 | { |
|