Example #1
0
    def testCreateEvent(self):
        organizationID = '3ehRi7uZeeaTN12dErF5XOnRXjC'
        apiKey = 'ARI0PzUzWYUo7GG1OxiHmABTpr9'
        apiHost = 'api.boundary.com'

        eventID = createEvent(apiHost, apiKey, '@title',
                              'Testing createEvent()', organizationID)
Example #2
0
#!/usr/bin/env python3

from boundary.api.event import createEvent
from boundary.api.event import getEvent

myApiHost = 'api.boundary.com'
myOrganizationID = '3ehRi7uZeeaTN12dErF5XOnRXjC'
myApiKey = 'ARI0PzUzWYUo7GG1OxiHmABTpr9'
myFingerprintFields = '@title'
myTitle = 'My shiny new event'

#
# Create a new boundary Event
#
eventId = createEvent(myApiHost, myApiKey, myFingerprintFields, myTitle,
                      myOrganizationID)
print('event id: ' + eventId)

#
# Fetch the newly created boundary event
#
newEvent = getEvent(myApiHost, myApiKey, eventId)
print(newEvent)
Example #3
0
    def testCreateEvent(self):
        organizationID = '3ehRi7uZeeaTN12dErF5XOnRXjC'
        apiKey = 'ARI0PzUzWYUo7GG1OxiHmABTpr9'
        apiHost = 'api.boundary.com'

        eventID = createEvent(apiHost,apiKey,'@title','Testing createEvent()',organizationID)
Example #4
0
#!/usr/bin/env python3

from boundary.api.event import createEvent
from boundary.api.event import getEvent


myApiHost = 'api.boundary.com'
myOrganizationID = '3ehRi7uZeeaTN12dErF5XOnRXjC'
myApiKey = 'ARI0PzUzWYUo7GG1OxiHmABTpr9'
myFingerprintFields = '@title'
myTitle = 'My shiny new event'


#
# Create a new boundary Event
#
eventId = createEvent(myApiHost,
                      myApiKey,
                      myFingerprintFields,
                      myTitle,myOrganizationID)
print('event id: ' + eventId)

#
# Fetch the newly created boundary event
#
newEvent = getEvent(myApiHost,
                    myApiKey,
                    eventId)
print(newEvent)