Cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing Mindsphere API from backend scheduler

Experimenter
Experimenter

We have a cron scheduler running inside the Mindsphere application to ingest the data into the Mindsphere platform. we have gone through "Calling APIs from Backend" section in the below link, but it is different from "calling APIs from background scheduler in a Mindsphere app". As our usecase is different,  can you point me the procedure to consume the Mindsphere API from a scheduler?.

 

https://developer.mindsphere.io/concepts/concept-authentication.html

 

Thanks.

1 REPLY

Re: Accessing Mindsphere API from backend scheduler

Legend
Legend
Since this is server to server communication, it is a good use case for the technical user credentials. You can provision your backend with access to them on startup and your cron job will be able to communicate with the MindSphere APIs. It's the same use case as a self-hosted app:
https://developer.mindsphere.io/howto/howto-selfhosted-api-access.html

You have a sample of this in the devops-demo project:
https://gitlab.com/mindsphere/devops-demo/blob/master/devops/devopsadmin/services/notification.js