[#128] Resolve "maintainer can recycle channel via cli"
Closes #128 (closed)
Examples of usage
Happy path with one phone number
❯ boost create-channel -p +19382223543 -n jvtesttest -a +13132635469 -u signalboost.ngrok.io
--- checking environment...
--- provisioning new channel [jvtesttest] on phone number +19382223543 at url signalboost.ngrok.io
{
"status": "ACTIVE",
"phoneNumber": "+19382223543",
"name": "jvtesttest",
"admins": [
"+13132635469"
]
}
❯ boost recycle -u signalboost.ngrok.io -n +19382223543
[
{
"status": "SUCCESS",
"data": {
"status": "VERIFIED",
"phoneNumber": "+19382223543",
"twilioSid": "PNc505ce2a87c34bfbe598c54120865bcf"
}
}
]
Recycle phone number that does not exist in channel database
❯ boost recycle -u signalboost.ngrok.io -n +19382223543
[
{
"status": "ERROR",
"message": "Channel not found for +19382223543"
}
]
One phone number exists and one does not
❯ boost create-channel -p +19382223543 -n jvtesttest -a +13132635469 -u signalboost.ngrok.io
--- checking environment...
--- provisioning new channel [jvtesttest] on phone number +19382223543 at url signalboost.ngrok.io
{
"status": "ACTIVE",
"phoneNumber": "+19382223543",
"name": "jvtesttest",
"admins": [
"+13132635469"
]
}
❯ boost recycle -u signalboost.ngrok.io -n +19382223543,+16154804259
[
{
"status": "SUCCESS",
"data": {
"status": "VERIFIED",
"phoneNumber": "+19382223543",
"twilioSid": "PNc505ce2a87c34bfbe598c54120865bcf"
}
},
{
"status": "ERROR",
"message": "Channel not found for +16154804259"
}
]
Edited by aguestuser