Jump to content


get creating date of alarm

alarm date

  • Please log in to reply
1 reply to this topic

#1 Domalys



  • Members
  • Pip
  • 5 posts

Posted 15 March 2016 - 03:22 PM

Hi all,


Is there a way to get the "created at" of an alarm via carriots SDK?


Thank you in advance for your reply.


Have a good day

#2 Yoleon


    Sugar Master

  • Members
  • PipPipPip
  • 34 posts

Posted 16 March 2016 - 09:28 AM

Hi Domalys,


Through the SDK it is not possible to access the creation date of an alarm. You can make a GET request through the REST API to get it.
I leave a sample code to do this from the SDK:
import com.carriots.sdk.utils.BasicHttp;
import groovy.json.JsonSlurper;

def json = new JsonSlurper();
def basicHttp = new BasicHttp();

basicHttp.url = "https://api.carriots.com/alarms/yourAlarm@customer.customer/";
basicHttp.verb = "GET";
def content = ["Content-Type": "application/json", "Carriots.apiKey": "YOUR-API-KEY"];
basicHttp.headers = content;
def response = json.parseText(basicHttp.send());



I hope this help you.


Carriots Staff

Also tagged with one or more of these keywords: alarm, date

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users