Skip to content

Commit

Permalink
Updating Disqus API
Browse files Browse the repository at this point in the history
Pagination/cursor support is not implemented in here.  The architecture prohibits storing response data as fields on the resource.

Change the return to be the full return instead of just the 'response'.
  • Loading branch information
Brian Nash committed Dec 18, 2014
1 parent b114919 commit 4729367
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions disqusapi/disqusapi.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function __call($name, $args) {
throw new DisqusAPIError($data->code, $data->response);
}

return $data->response;
return $data;
}
}

Expand Down Expand Up @@ -147,4 +147,4 @@ public function setFormat($format) {
public function setVersion($version) {
$this->version = $version;
}
}
}

0 comments on commit 4729367

Please sign in to comment.