-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fast buy functionality #18
Comments
the original intention was to have pattern matching on the buy without the --pattern flag
|
@sammachin OK let me look into this |
@sammachin I assume you only see this working with trailing wildcards? I cant see this work with leading *'s as we wont know what country you want. |
yeah that the issue with leading *'s I guess you could optionally specify a On Wed, May 11, 2016 at 3:36 PM, Cristiano Betta notifications@github.com
|
Actually, just thinking about this, not sure if this works. Currently number:buy uses NI Basic to look up the country ID, seeing as the API needs the country ID and the msisdn. If we'd drop to just a pattern (e.g. 45555*) how are we to determine the country code. Does NI basic allow for this? If it doesn't then maybe we should do this instead:
I can then internally simply look at the number of options provided and pass it to the right handler. Ok? |
@sammachin This has now been implemented in #30. |
FYI released v0.0.5 with some of the latest changes. |
Currently the API allows for searching of numbers by certain specifications and then buying the number.
It would be interesting if we could achieve this all in 1 step:
The first 2 options have the downside of overcomplicating the now relatively simple
number:buy
andnumber:search
. The latter has the downside of being a new command.The text was updated successfully, but these errors were encountered: