Locates places near the given coordinates which are similar in name.

@param array $parameters
@param bool $multipart
@param bool $appOnlyAuth
@return mixed
500661
public function getGeoSimilarPlaces(array $parameters = array(), $multipart = false, $appOnlyAuth = false)
    {
        return $this->get('geo/similar_places', $parameters, $multipart, $appOnlyAuth);
    }
414679
public static function listAllOptionsAsync(array $parameters = [])
    {
        return self::listAllOptionsAsyncWithHttpInfo($page, $size, $sort)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }
52518
public function postStatusesRetweet($id, array $parameters = array(), $multipart = false, $appOnlyAuth = false)
    {
        return $this->post("statuses/retweet/{$id}", $parameters, $multipart, $appOnlyAuth);
    }
283447
public function getStatusesRetweetsOfMe(array $parameters = array(), $multipart = false, $appOnlyAuth = false)
    {
        return $this->get('statuses/retweets_of_me', $parameters, $multipart, $appOnlyAuth);
    }
762729
function post($url, $parameters = array(), $multi = false) {
    $response = $this->oAuthRequest($url, 'POST', $parameters, $multi );
    if ($this->format === 'json' && $this->decode_json) {
      return json_decode($response, true);
    }
    return $response;
  }
1282380
public static function listAllPaymentSourcesAsync(array $parameters = [])
    {
        return self::listAllPaymentSourcesAsyncWithHttpInfo($page, $size, $sort)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }
177593
public function postDirectMessagesDestroy(array $parameters = array(), $multipart = false, $appOnlyAuth = false)
    {
        return $this->post('direct_messages/destroy', $parameters, $multipart, $appOnlyAuth);
    }
1080515
public function getFollowersIds(array $parameters = array(), $multipart = false, $appOnlyAuth = false)
    {
        return $this->get('followers/ids', $parameters, $multipart, $appOnlyAuth);
    }
110426
public function getFriendshipsShow(array $parameters = array(), $multipart = false, $appOnlyAuth = false)
    {
        return $this->get('friendships/show', $parameters, $multipart, $appOnlyAuth);
    }
953020
protected function getProfileUrls(array $parameters, string $errorTitle): iterable
    {
        if (\array_key_exists(P::PARAM_PROFILE, $parameters) === true) {
            $encodedUrls = $parameters[P::PARAM_PROFILE];
            $decodedUrls = \urldecode($encodedUrls);
            yield from $this->splitSpaceSeparatedStringAndCheckNoEmpties(
                P::PARAM_PROFILE,
                $decodedUrls,
                $errorTitle
            );
        }
    }
619300
public function getSavedSearchesList(array $parameters = array(), $multipart = false, $appOnlyAuth = false)
    {
        return $this->get('saved_searches/list', $parameters, $multipart, $appOnlyAuth);
    }
172613
private function calculateSignatureAndParametersToString($parameters = array())
    {
        foreach ($parameters as $key => $value) {
            // Ensure that no unexpected type coercions have happened
            if ($key === 'CaptureNow' || $key === 'ConfirmNow' || $key === 'InheritShippingAddress' || $key === 'RequestPaymentAuthorization') {
                if (!is_bool($value)) {
                    throw new \Exception($key . ' value ' . $value . ' is of type ' . gettype($value) . ' and should be a boolean value');
                }
            }

            // Ensure boolean values are outputed as 'true' or 'false'
            if (is_bool($value)) {
                $parameters[$key] = json_encode($value);
            }
        }

        $parameters['AWSAccessKeyId']   = $this->config['access_key'];
        $parameters['Version']          = self::MWS_VERSION;
        $parameters['SignatureMethod']  = 'HmacSHA256';
        $parameters['SignatureVersion'] = 2;
        $parameters['Timestamp']        = $this->getFormattedTimestamp();
        uksort($parameters, 'strcmp');

        $this->createServiceUrl();

        $parameters['Signature'] = $this->signParameters($parameters);
        $parameters              = $this->getParametersAsString($parameters);

        // Save these parameters in the parameters variable so that it can be returned for unit testing.
        $this->parameters = $parameters;

        return $parameters;
    }
1276907
public function getFriendshipsNoRetweetsIds(array $parameters = array(), $multipart = false, $appOnlyAuth = false)
    {
        return $this->get('friendships/no_retweets/ids', $parameters, $multipart, $appOnlyAuth);
    }
197481
public function getFriendsList(array $parameters = array(), $multipart = false, $appOnlyAuth = false)
    {
        return $this->get('friends/list', $parameters, $multipart, $appOnlyAuth);
    }
1108003
function getGuestList($length = -1, $offset = 0, $multicall = false)
    {
        if (!is_int($length)) {
            throw new InvalidArgumentException('length = ' . print_r($length, true));
        }
        if (!is_int($offset)) {
            throw new InvalidArgumentException('offset = ' . print_r($offset, true));
        }

        if ($multicall) {
            return $this->execute(ucfirst(__FUNCTION__), array($length, $offset), $this->structHandler('Player', true));
        }
        return Structures\Player::fromArrayOfArray($this->execute(ucfirst(__FUNCTION__), array($length, $offset)));
    }
1157762
public function getSavedSearchesShow($id, array $parameters = array(), $multipart = false, $appOnlyAuth = false)
    {
        return $this->get("saved_searches/show/{$id}", $parameters, $multipart, $appOnlyAuth);
    }
1095044
public static function parse(array $parameters)
    {
        if (base64_decode($parameters[self::PARAMETER_REQUEST], true) === false) {
            throw new InvalidRequestException('Failed decoding SAML request, did not receive a valid base64 string');
        }

        $parsed = new self($parameters[self::PARAMETER_REQUEST]);

        if (isset($parameters[self::PARAMETER_RELAY_STATE])) {
            $parsed->relayState = $parameters[self::PARAMETER_RELAY_STATE];
        }

        $decoded = $parsed->getDecodedSamlRequest();
        $request = ReceivedAuthnRequest::from($decoded);

        $parsed->receivedRequest = $request;

        // Return AuthnRequest
        return $parsed;
    }