namstery21 3 Posted March 24, 2017 Report Share Posted March 24, 2017 During creating accounts, I need to use smspva api or similar service, They give api service but I don't know how to connect to my ubot script.Is there any plugin or script for this? Quote Link to post Share on other sites
pftg4 102 Posted March 24, 2017 Report Share Posted March 24, 2017 it's only an http get just read api docs Quote Link to post Share on other sites
zozo31 10 Posted March 24, 2017 Report Share Posted March 24, 2017 or search around a bit and see @TJ have released twillio sms plugin here free plugin only has 2 pages in it :( Quote Link to post Share on other sites
a2mateit 395 Posted March 25, 2017 Report Share Posted March 25, 2017 This can be done with the http plugin using the api calls. Pretty easy once your familiar with the http pluin and api calls. Have it integrated into quite a few of my personal bots. But it can be a real pain with all the checks you have do to for a working number, then to get the proper verification code. You have to code in a lot of redundencys to check over and over and then exit and mark as a bad number after a certain number of tries. Hope that helps. 1 Quote Link to post Share on other sites
ponda199 3 Posted February 20, 2018 Report Share Posted February 20, 2018 yeah i am wondering too how to get this to work...do you found a way to do so? Quote Link to post Share on other sites
HelloInsomnia 1103 Posted February 22, 2018 Report Share Posted February 22, 2018 Basically what you need to do is first get yourself a copy of HTTP Post Plugin or Heopas Plugin so that you can make HTTP requests. Also, get the JSON Path Parser plugin - alternatively you can use regex to parse the response. Then grab your SMSPVA account and head on over to the "Profile & API Key" page and grab your API Key. Then head to the API page and find the method you want to use. We can use the "get_number" method. Make a new GET request and copy the example code. Then replace the country, service, id and apikey with your own information. You probably will want to make this a custom command with those 4 parameters to pass into it. Finally, you need to use JSON Path Parser or regex to parse the response. I know this is just a high level view and not actual code but because you will need to be using many methods from their API its best if you learn about all this stuff so you can create the code yourself and understand it. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.