ruby - why is my plivo api call returning an error? -


I am using the plivo search number API for the list of telephone numbers selected by the criteria.

Ruby code is:

  get '/ search_numbers' do = restAPI.new (AUTH_ID, AUTH_TOKEN) params = {'country_iso' = & gt; 'GB'} response = p.search_phone_number (params) end  

and the error I get is:

  88.106.106.78 - - [22] / January 2015: 15: 02: 59 + 0000] "GET / search_numbers HTTP / 1.0" 200 - 1.7485 2015-01-22 15:02:59 +0000: Read error: # & lt; NoMethodError: ["API_ID", "C2525 F-C-A247-11e4-B153-22000 Bac 64"] for Undefined Method 'Bytescape']: Array & G;  

I do not understand what is wrong. I can not see any typo, the passed parameter is correct and the correct function is to use the right function and the function.

Help, please!


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -