Get SMS via API

Hi, im very new to all of this, i might not be familiar with terminology.

I know the url to make an API call to get a phone number :
it goes something like this:
http://smspva.com/priemnik.php?apikey=*MYAPIKEY*&id=1&metod=get_number&service=opt11&country=UK

The response from it looks like so:

{“response”:“1”,“number”:“7515487759”,“id”:14199984,“again”:0,“text”:null,“extra”:“”,“karma”:49.24500000000004,“pass”:null,“sms”:null,“balanceOnPhone”:0,“service”:null,“country”:null,“CountryCode”:“+44”,“branchId”:0,“callForwarding”:false}

How can i create a variable for the phone number (7515487759) out of this ?

Hello,

see this guide about parsing JSON responses in Katalon.

https://docs.katalon.com/katalon-studio/tutorials/parse_json_responses.html

1 Like

Thats Studio, can it be done in Katalon Recorder ?

1 Like