public function createTwitter($params, $optParams = [])
    {
        if (is_string($params)) {
            $params = ['twitterId' => $params];
        }
        $params = $this->client->fillParams(['cloudId', 'twitterId'], $params);

        return $this->build('/r/twitter/'.$params['twitterId'], $params, $optParams);
    }
public function createTwitter($params, $optParams = [])
    {
        if (is_string($params)) {
            $params = ['twitterId' => $params];
        }
        $params = $this->client->fillParams(['cloudId', 'twitterId'], $params);

        return $this->build('/r/twitter/'.$params['twitterId'], $params, $optParams);
    }
public function createTwitter ( $ params , $ optParams = [ ] ) { if ( is_string ( $ params ) ) { $ params = [ 'twitterId' => $ params ] ; } $ params = $ this -> client -> fillParams ( [ 'cloudId' , 'twitterId' ] , $ params ) ; return $ this -> build ( '/r/twitter/' . $ params [ 'twitterId' ] , $ params , $ optParams ) ; }
Creates the URL for a Twitter profile picture.

@param array|string $params Required API parameters

<li>cloudId - cloud ID
<li>twitterId - Twitter user ID
@param array $optParams Optional API parameters

<li>option - options defined by shardimage\shardimagephp\factories\Option
<li>transformation - transformations defined by shardimage\shardimagephp\factories\Transformation
<li>version - version number (to force cache miss)
<li>format - output format
<li>seo - SEO filename
<li>security - "basic" or "token"

@return string
Creates the URL for a Twitter profile picture .