Community
OpenEnergyMonitor

Community

New module Service API

emoncms
Tags: #<Tag:0x00007f10b115dab0>
(Carlos AG) #1

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

(Trystan Lea) #2

Nice idea! thanks again for sharing :slight_smile:

0 Likes