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

jastraat created an issue. See original summary.

  • bbujisic committed 14ca1cb on 7.x-1.x
    Issue #2687995: Allow pulling the subscription record for a given...
bbujisic’s picture

Status: Active » Needs work

Hi 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

  • bbujisic committed fee6834 on 7.x-1.x
    Issue #2687995: Allow pulling the subscription record for a given phone...
bbujisic’s picture

Status: Needs work » Fixed

There 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.

  • bbujisic committed 14ca1cb on 8.x-1.x
    Issue #2687995: Allow pulling the subscription record for a given...
  • bbujisic committed fee6834 on 8.x-1.x
    Issue #2687995: Allow pulling the subscription record for a given phone...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.