cloud-on-prem / here_places

A wafer-thin Ruby wrapper for accessing Nokia's Here Maps Places API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Move call_api out of "protected" from HerePlaces::Base

maokomioko opened this issue · comments

Hi guys,
Is it possible to move call_api method out of protected?

For instance if I'm querying API for contact results, I need to past a url like
"http://places.nlp.nokia.com/places/v1/places/203u2fkb-f84a8ece9c5643f6b880f66ec00db699;context=Zmxvdy1pZD1kYjIyZGVlMy0zMTUzLTVkZGItODQ0Zi1hMmVhYmIxMzM0NWVfMTQzNjI5ODMwNDgyNF8wXzcwNjgmcmFuaz02MA?app_id=xxx&app_code=xxx"
with app_id and app_key params in order to fetch contact details.

Exposing the method directly, would ease things. Otherwise I'd need to add another module, which'd use "call_api" functionality.