It appears that subscriptionsGet() is meant to accept 'phone' as a limiting parameter, but it doesn't work.
subscriptionGetByPhone() is supposed to be shortcut to the same functionality, but it has no graceful error handling. If no subscription is found, it doesn't return FALSE or an empty array. Instead it throws an error.
One of these two functions should support returning a subscription matching a phone number and keyword with graceful error handling so that it could be used to determine if a number is already subscribed.
Comments
Comment #3
bbujisic commentedHi Jess,
We are still working on
subscriptionsGet(). However,subscriptionGetByPhone()is fixed. It now returns either Subscription object or FALSE.I will keep this thread opened until we fix the phone filter in
subscriptionsGet()as well.Thanks,
Branislav
Comment #5
bbujisic commentedThere was an issue with the API which required removal of international calling code for the NANP in 11-digit phone numbers. This is fixed now.