Returns a single direct message, specified by an id parameter.
Like the /1.1/direct_messages.format request, this method will include the user objects of the sender and recipient.

@param array $parameters
@param bool $multipart
@param bool $appOnlyAuth
348229
public function getDirectMessagesShow(array $parameters = array(), $multipart = false, $appOnlyAuth = false)
    {
        return $this->get('direct_messages/show', $parameters, $multipart, $appOnlyAuth);
    }
308438
public function getTrandsPlace(array $parameters = array(), $multipart = false, $appOnlyAuth = false)
    {
        return $this->get('trends/place', $parameters, $multipart, $appOnlyAuth);
    }
683688
public static function listAllRefundTransactionsAsync(array $parameters = [])
    {
        return self::listAllRefundTransactionsAsyncWithHttpInfo($page, $size, $sort)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }
500799
private function getRequestHeaders($url, array $parameters)
    {
        $headers = array();

        if (isset($this->clientId) && isset($this->sharedSecret)) {
            $objectIdentifier = null;
            if ($this->apiVersion === '1.1' && isset($parameters['id'])) {
                $objectIdentifier = $parameters['id'];
            } elseif ($this->apiVersion === '1.0' && isset($parameters['api_id'])) {
                $objectIdentifier = $parameters['api_id'];
            }

            $headers['X-Tulip-Client-ID'] = $this->clientId;
            $headers['X-Tulip-Client-Authentication'] = hash_hmac('sha256', $this->clientId.$url.$objectIdentifier, $this->sharedSecret);
        }

        return $headers;
    }
629063
public static function listAllCashOnDeliveryPaymentsAsync(array $parameters = [])
    {
        return self::listAllCashOnDeliveryPaymentsAsyncWithHttpInfo($page, $size, $sort)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }
110426
public function getFriendshipsShow(array $parameters = array(), $multipart = false, $appOnlyAuth = false)
    {
        return $this->get('friendships/show', $parameters, $multipart, $appOnlyAuth);
    }
283447
public function getStatusesRetweetsOfMe(array $parameters = array(), $multipart = false, $appOnlyAuth = false)
    {
        return $this->get('statuses/retweets_of_me', $parameters, $multipart, $appOnlyAuth);
    }
619300
public function getSavedSearchesList(array $parameters = array(), $multipart = false, $appOnlyAuth = false)
    {
        return $this->get('saved_searches/list', $parameters, $multipart, $appOnlyAuth);
    }
948270
public static function listAllPaymentTokensAsync(array $parameters = [])
    {
        return self::listAllPaymentTokensAsyncWithHttpInfo($page, $size, $sort)
            ->then(
                function ($response) {
                    return $response[0];
                }
            );
    }
1166570
public function getGeoId($placeId, array $parameters = array(), $multipart = false, $appOnlyAuth = false)
    {
        return $this->get("geo/id/{$placeId}", $parameters, $multipart, $appOnlyAuth);
    }
932007
public function upload($status, $media, array $parameters = array(), $appOnlyAuth = false)
    {
        $data = array('status' => $status, 'media[]' => $media) + $parameters;

        return $this->postStatusesUpdateWithMedia($data, $appOnlyAuth);
    }
1364271
public function sendFile($params, $type, $multipart = false)
    {
        return $this->sendRequest('send'.ucfirst($type), $params, $multipart);
    }
670099
function oAuthRequest($url, $method, $parameters)
    {
        if (strrpos($url, 'https://') !== 0 && strrpos($url, 'http://') !== 0) {
            $url = "{$this->host}{$url}.{$this->format}";
        }
        $request = OAuthRequest::from_consumer_and_token($this->consumer, $this->token, $method, $url, $parameters);
        $request->sign_request($this->sha1_method, $this->consumer, $this->token);
        switch ($method) {
            case 'GET':
                return $this->http($request->to_url(), 'GET');
            default:
                return $this->http($request->get_normalized_http_url(), $method, $request->to_postdata());
        }
    }
619750
public function getTrendsClosest(array $parameters = array(), $multipart = false, $appOnlyAuth = false)
    {
        return $this->get('trends/closest', $parameters, $multipart, $appOnlyAuth);
    }
597049
private function getCosignInfo(array $parameters, $auth_required = true)
    {
        $this->client = $this->setClientSoap($this->URL_WSDL_COSIGN);
        $result = $this->client->call('getInfosFromCosignatureDemand', $parameters, self::API_NAMESPACE, self::API_NAMESPACE, $this->createHeaders($auth_required));

        if ($this->client->fault) {
            $this->errors[] = $this->client->faultstring;
            if (isset($parameters['token']) && strstr(strtolower($this->client->faultstring), 'invalid token')) {
                return 'INVALID_TOKEN';
            } elseif (isset($parameters['idDemand']) && strstr($this->client->faultstring, 'is not associated with the user')) {
                return 'DEMAND_NOT_ALLOWED';
            } else {
                return false;
            }
        } else {
            $err = $this->client->getError();
            if ($err) {
                $this->errors = $err;

                return false;
            } else {
                return $result;
            }
        }
    }
743832
protected function createAuthorization(array $parameters): ResponseInterface
    {
        try {
            list($client, $redirectUri) = $this->getValidClientAndRedirectUri(
                $this->codeGetClientId($parameters),
                $this->codeGetRedirectUri($parameters)
            );
            if ($client === null || $redirectUri === null) {
                return $this->getIntegration()->createInvalidClientAndRedirectUriErrorResponse();
            }

            $maxStateLength = $this->getMaxStateLength();
            switch ($responseType = $this->getResponseType($parameters)) {
                case ResponseTypes::AUTHORIZATION_CODE:
                    $this->logDebug('Handling code authorization.');
                    $response = $this
                        ->codeAskResourceOwnerForApproval($parameters, $client, $redirectUri, $maxStateLength);
                    break;
                case ResponseTypes::IMPLICIT:
                    $this->logDebug('Handling implicit authorization.');
                    $response = $this
                        ->implicitAskResourceOwnerForApproval($parameters, $client, $redirectUri, $maxStateLength);
                    break;
                default:
                    // @link https://tools.ietf.org/html/rfc6749#section-3.1.1 ->
                    // @link https://tools.ietf.org/html/rfc6749#section-4.1.2.1
                    $this->logInfo('Unsupported response type in request.', ['response_type' => $responseType]);
                    $errorCode = OAuthCodeRedirectException::ERROR_UNSUPPORTED_RESPONSE_TYPE;
                    throw new OAuthCodeRedirectException($errorCode, $redirectUri);
            }
        } catch (OAuthRedirectException $exception) {
            $response = $this->createRedirectErrorResponse($exception);
        }

        return $response;
    }
1285699
public function getStatusesRetweetersIds(array $parameters = array(), $multipart = false, $appOnlyAuth = false)
    {
        return $this->get('statuses/oembed', $parameters, $multipart, $appOnlyAuth);
    }