adding an api key for httparty in ruby on rails -


i trying use adafruit api access data.

currently when try , access following message:

{"error":"not found - api documentation can found @ https://io.adafruit.com/api/docs"}

i think because haven't added key (as same message if don't use key on adafruit example page) don't know add it.

currently, have in controller:

def index     @tests = httparty.get('https://io.adafruit.com/api/v2/username/myfeed/test/data')  end 

thanks in advance x

please change code with

def index     @tests = httparty.get('https://io.adafruit.com/api/v2/username/myfeed/test/data?key_id=your_key_id')  end 

Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -