RESPONSE
RESPONSE
Class CMDataManager This class connects to cloudmunch to update /retrieve data
__construct(\CloudMunch\datamanager\CloudMunch\loghandling\LogHandler $logHandler, \CloudMunch\datamanager\CloudMunch\AppContext $appContext, \CloudMunch\datamanager\CloudMunch\helper\NotificationHandler $notificationHandler = null)
Constructor to initialise loghandling, application context and notification handler.
| \CloudMunch\datamanager\CloudMunch\loghandling\LogHandler | $logHandler | |
| \CloudMunch\datamanager\CloudMunch\AppContext | $appContext | |
| \CloudMunch\datamanager\CloudMunch\helper\NotificationHandler | $notificationHandler |
putDataForContext(string $url, string $apikey, array $data, string $comment = null, array $extraParams = null) : \CloudMunch\datamanager\json
Update data for given context.
| string | $url | |
| string | $apikey | |
| array | $data | |
| string | $comment | |
| array | $extraParams |
object in the format {"data":{"id":"contextid","name":"contextname"},"request":{"status":"SUCCESS"}}
sendNotification(string $serverurl, string $apikey, string $contextarray) : boolean
This method is to invoke notify api on cloudmunch.
| string | $serverurl | : base server url |
| string | $apikey | : Api key. |
| string | $contextarray | : an array of components of the notification |
: success status