Created
January 22, 2016 21:49
-
-
Save dtolb/5116dc5b7146962c496c to your computer and use it in GitHub Desktop.
Search then Order
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//reserve a phone numbers for callbacks if need | |
var numbers = await AvailableNumber.SearchLocal(catapult, new Dictionary<string, object> { { "state", "NC" }, { "city", "Cary" }, { "quantity", 1 } }); | |
phoneNumber = numbers.First().Number; | |
await PhoneNumber.Create(catapult, new Dictionary<string, object> { { "number", phoneNumber } }); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment