Exemplo n.º 1
0
def main():
    k = 'ARI0PzUzWYUo7GG1OxiHmABTpr9'
    o = '3ehRi7uZeeaTN12dErF5XOnRXjC'
    connection = EventConnection(apiKey=k,organizationID=o)
    event = Event.getDefaultEvent()
    
    event.message = 'Hello World'
    event.title = 'Boundary Object Oriented Event API'
    
    eventId = connection.createEvent(event)
    
    print('event id: ' + str(eventId))
    
    newEvent = connection.getEvent(eventId)
    
    print('event: ' + newEvent)
Exemplo n.º 2
0
def main():
    k = 'ARI0PzUzWYUo7GG1OxiHmABTpr9'
    o = '3ehRi7uZeeaTN12dErF5XOnRXjC'
    connection = EventConnection(apiKey=k, organizationID=o)
    event = Event.getDefaultEvent()

    event.message = 'Hello World'
    event.title = 'Boundary Object Oriented Event API'

    eventId = connection.createEvent(event)

    print('event id: ' + str(eventId))

    newEvent = connection.getEvent(eventId)

    print('event: ' + newEvent)
Exemplo n.º 3
0
    def testGetEvent(self):
        connection = EventConnection(self.apiKey, self.organizationID)

        event = connection.getEvent(213299714)
        print('event_type {0}, event: {1}'.format(type(event), event))
Exemplo n.º 4
0
 def testGetEvent(self):
     connection = EventConnection(self.apiKey,
                                  self.organizationID)
       
     event = connection.getEvent(213299714)
     print('event_type {0}, event: {1}'.format(type(event),event))
Exemplo n.º 5
0
def getEvent(apiHost, apiKey, eventId):
    c = EventConnection(apiKey=apiKey, apiHost=apiHost)

    event = c.getEvent(eventId)
    return event
Exemplo n.º 6
0
def getEvent(apiHost,apiKey,eventId):
    c = EventConnection(apiKey=apiKey,apiHost=apiHost)
    
    event = c.getEvent(eventId)
    return event