<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Thank you, works perfectly :-)<br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><table class="x_MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="400" style="font-family: Helvetica; letter-spacing: normal; text-indent: 0px; text-transform: none; word-spacing: 0px; -webkit-text-stroke-width: 0px; width: 259.8pt;"><tbody class=""><tr class=""><td valign="top" class="" style="padding: 0in;"><br class=""></td></tr></tbody></table></div></div>
</div>
<div style=""><br class=""><blockquote type="cite" class=""><div class="">On 6 Apr 2018, at 1:36 AM, Irina Peshinskaya <<a href="mailto:ipeshinskaya@sipwise.com" class="">ipeshinskaya@sipwise.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Dear Walter,<br class=""><br class="">You can use alias and/or username filters of the /api/subscribers interface to get subscribers info, including id:<br class=""><br class="">curl -i -H'Content-type: application/json' --insecure --user administrator:pwd -X GET '<a href="https://127.0.0.1:1443/api/subscribers/?alias=111" class="">https://127.0.0.1:1443/api/subscribers/?alias=111</a>'<br class=""><br class="">or<br class=""><br class="">curl -i -H'Content-type: application/json' --insecure --user administrator:pwd -X GET '<a href="https://127.0.0.1:1443/api/subscribers/?username=%pilot%" class="">https://127.0.0.1:1443/api/subscribers/?username=%pilot%</a>'<br class=""><br class="">Best regards,<br class="">Irina Peshinskaya<br class=""><br class="">On 2018-04-05 18:25, Walter Klomp wrote:<br class=""><blockquote type="cite" class="">Hi,<br class=""><br class="">Anybody?? Is there no such option?<br class=""><br class="">Currently in order to make modifications in subscriber preferences in REST API I first have to find the id of the subscriber.<br class="">SELECT id FROM billing.voip_subscribers where username = '$fixednumber’';<br class=""><br class="">I do this by querying the database directly. However I’d like to change this to a REST API call…<br class=""><br class="">I do have the subscriber number (phone number) - how do I find the id with a REST call ?<br class=""><br class="">Is that at all possible? The handbook is cryptic at best and only shows how to get the id on creation. This doesn’t help me when migrating from SOAP interface…<br class=""><br class="">Thank you for any hints/ideas (php example?).<br class=""><br class="">Warmest Regards<br class="">Walter.<br class="">_______________________________________________<br class="">Spce-user mailing list<br class=""><a href="mailto:Spce-user@lists.sipwise.com" class="">Spce-user@lists.sipwise.com</a><br class="">https://lists.sipwise.com/listinfo/spce-user<br class=""></blockquote><br class=""></div></div></blockquote></div><br class=""></body></html>