New module Service API

Hi,

FYI we have developed a new module ServiceAPI that allows to get access to user’s data in an emonCMS installation by providing a master apikey (aka service_apikey)
and the username or email address of the user.

Our user case is to allow our members to access their MyHomeEnergyPlanner data from our dashboard (in a complete different web app). This way we don’t need to know the user write or read apikeys.

The service_apikey can be sent in the query string of the URL or as a POST field (recommended)

So to access data this way you could do a curl to something like:
https://youremoncms.org/serviceapi/feed/list.json?service_apikey=the_key_in_your_settings&usernameaccess=a_user_name

2 Likes

Nice idea! thanks again for sharing :slight_smile: