Open tommorris opened 6 years ago
Seems like a good idea but it shouldn't be interactive, the rest of the CLI isn't and its designed as an admin tool rather than a testing tool.
But having several commands for each stage seems like a good idea so nexmo verify:start [NUMBER] [BRAND] - returns the ID nexmo verify:code [ID] [CODE] - checks the code against the ID and returns pass/fail nexmo verify:skip [ID] - skips the next stage nexmo verify:cancel [ID - cancels the verification
This wasy is more in keeping with the rest of the CLI and allows you to use a single part of the CLI with a verify request that may be made outside the CLI, for example I just want to cancel a request that my code sent and I have the ID
It'd be useful to have an interactive example for Verify built into the CLI.
Something like this:
Or if they chose to skip.
The purpose of this is to enable developers to more easily test the Verify API to see if it matches the needs of the developer (or their employer etc.).