-
Notifications
You must be signed in to change notification settings - Fork 6
/
Examply API Calls locally.txt
21 lines (14 loc) · 2.28 KB
/
Examply API Calls locally.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#GET MESSAGE LIST FILTERED
curl AC4b63ca275b10e0908abb60f9e6ff6a676079bceba07ea502bfcf9c16b449bdda:0143bc9f3df75ac4431043f24c18295ffa9fbee5fbbac27879d9d184ad62db5f@localhost:8094/2010-04-01/Accounts/AC4b63ca275b10e0908abb60f9e6ff6a676079bceba07ea502bfcf9c16b449bdda/SMS/Messages?To=2403505687
#RETRIEVE PHONE NUMBER LIST
curl --user AC4b63ca275b10e0908abb60f9e6ff6a676079bceba07ea502bfcf9c16b449bdda:0143bc9f3df75ac4431043f24c18295ffa9fbee5fbbac27879d9d184ad62db5f localhost:8094/2010-04-01/Accounts/AC4b63ca275b10e0908abb60f9e6ff6a676079bceba07ea502bfcf9c16b449bdda/IncomingPhoneNumbers
#REQ A PHONE NUMBER WITH AREA CODE
curl -d "AreaCode=301&FriendlyName=PhoneNumber Req" --user AC4b63ca275b10e0908abb60f9e6ff6a676079bceba07ea502bfcf9c16b449bdda:2603c7588973b07bf5d671f224a6ca059e0fe219f4fea96996ff150fdd320c91 localhost:8094/2010-04-01/Accounts/AC4b63ca275b10e0908abb60f9e6ff6a676079bceba07ea502bfcf9c16b449bdda/IncomingPhoneNumbers.json
#GEt a phone number info
curl -v --user AC4b63ca275b10e0908abb60f9e6ff6a676079bceba07ea502bfcf9c16b449bdda:0143bc9f3df75ac4431043f24c18295ffa9fbee5fbbac27879d9d184ad62db5f localhost:8094/2010-04-01/Accounts/AC4b63ca275b10e0908abb60f9e6ff6a676079bceba07ea502bfcf9c16b449bdda/IncomingPhoneNumbers/PNf806d55748fffd4add2b972d1292feb2720fa3c0480319e81f647cb43cc29a8f
#UPDATE A PHONE NUMBER
curl -v -d "FriendlyName=TVSHOW&VoiceUrl=http://www.cnn.com" --user AC4b63ca275b10e0908abb60f9e6ff6a676079bceba07ea502bfcf9c16b449bdda:0143bc9f3df75ac4431043f24c18295ffa9fbee5fbbac27879d9d184ad62db5f localhost:8094/2010-04-01/Accounts/AC4b63ca275b10e0908abb60f9e6ff6a676079bceba07ea502bfcf9c16b449bdda/IncomingPhoneNumbers/PNf806d55748fffd4add2b972d1292feb2720fa3c0480319e81f647cb43cc29a8f
#DELETE A PHONE NUMBER
curl -v -X DELETE --user AC4b63ca275b10e0908abb60f9e6ff6a676079bceba07ea502bfcf9c16b449bdda:0143bc9f3df75ac4431043f24c18295ffa9fbee5fbbac27879d9d184ad62db5f localhost:8094/2010-04-01/Accounts/AC4b63ca275b10e0908abb60f9e6ff6a676079bceba07ea502bfcf9c16b449bdda/IncomingPhoneNumbers/*SID*
#Update a users friendlyname
curl -d "FriendlyName=testusername" --user AC4b63ca275b10e0908abb60f9e6ff6a676079bceba07ea502bfcf9c16b449bdda:0143bc9f3df75ac4431043f24c18295ffa9fbee5fbbac27879d9d184ad62db5f localhost:8094/2010-04-01/Accounts/AC4b63ca275b10e0908abb60f9e6ff6a676079bceba07ea502bfcf9c16b449bdda