Skip to content

Commit

Permalink
Revert "Add support for Language method AnalyzeEntitySentiment (#426)…
Browse files Browse the repository at this point in the history
…" (#431)

This reverts commit d6bc859f5201b52fbfa3cf7d307410b657bb7220.
  • Loading branch information
jdpedrie authored and dwsupplee committed Apr 5, 2017
1 parent bb8e63d commit e6e88dc
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions RestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,7 @@ public function setRequestWrapper(RequestWrapper $requestWrapper)
*
* @param string $resource The resource type used for the request.
* @param string $method The method used for the request.
* @param array $options [optional] {
* Options used to build out the request.
*
* @type RequestBuilder $requestBuilder An instance of RequestBuilder.
* If provided, the request will be constructed using the given
* instance, rather than the one found in the `$requestBuilder`
* property.
* }
* @param array $options [optional] Options used to build out the request.
* @return array
*/
public function send($resource, $method, array $options = [])
Expand All @@ -81,14 +74,9 @@ public function send($resource, $method, array $options = [])
'requestTimeout'
], $options);

$requestBuilder = $this->pluck('requestBuilder', $options, false);
if (is_null($requestBuilder) || !($requestBuilder instanceof RequestBuilder)) {
$requestBuilder = $this->requestBuilder;
}

return json_decode(
$this->requestWrapper->send(
$requestBuilder->build($resource, $method, $options),
$this->requestBuilder->build($resource, $method, $options),
$requestOptions
)->getBody(),
true
Expand Down

0 comments on commit e6e88dc

Please sign in to comment.