bryglen / yii2-twillio

yii 2 twillio integration
1 stars 7 forks source link

Hi, #2

Open mirrorps opened 9 years ago

mirrorps commented 9 years ago

Hi bryglen,

Thanks for the great extension. I saw 2 small typos:

'components' => [
    'twillio' => [
        'class' => 'bryglen\twillio\Twillio', // <--- This is the right path that worked for me
        'sid' => 'your_sid',
        'token' => 'your_token',
    ]
]
$twillio = Yii::$app->twillio;

//---- missing the $message var bellow:
$message = $twillio->getClient()->account->messages->sendMessage(
    '9991231234', // From a valid Twilio number
    '8881231234', // Text this number
    "Hello monkey!"
)

print $message->sid;

Are you planing to release a stable version, so it can be easily installed / updated via composer with "minimum-stability": "stable" ?

Thanks again for the extension.

bryglen commented 9 years ago

yes.. thanks for correcting.

yes I will add a stable version but this API wrapper is not yet complete

mirrorps commented 9 years ago

OK, Thanks.