Skip to content

Conversation

@gedimin45
Copy link
Contributor

When token was incorrect, the REST API returns a non-2xx status code and that triggers an exception

// Check if $VerifyResult->getStatus() === MessageBird\Objects\Verify::STATUS_VERIFIED

} catch (\MessageBird\Exceptions\RequestException $e) {
// token was incorrect
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add an echo 'token incorrect'; here?

@samwierema samwierema merged commit f4fef24 into master Nov 24, 2016
@samwierema samwierema deleted the update-verify-example branch November 24, 2016 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants