Пример #1
0
    def test_create_team_room(self):
        team = Team()
        team.name = 'PYTHON SDK TEST TEAM'
        team = team.create(session)
        self.assertIsInstance(team, Team)
        print team.id

        room = Room()
        room.title = "PYTHON SDK TEAM ROOM"
        room.teamId = team.id
        resp = room.create(session)
        self.assertTrue(resp.ok)
Пример #2
0
 def createRoom(self, roomname):
     room = Room()
     room.title = roomname
     room.create(self.session)
     return room
Пример #3
0
 def test_create_test_room(self):
     room = Room()
     room.title = roomname
     resp = room.create(session)
     self.assertTrue(resp.ok)
Пример #4
0
from spark.rooms import Room
from spark.session import Session

token =  'Put your Auth Token Here'

url = 'https://api.ciscospark.com'

session = Session(url, token)

room = Room()
room.title = 'DevOps Forum IoT'
room.create(session)
Пример #5
0
from spark.rooms import Room
from spark.session import Session

token = 'YOUR TOKEN HERE'

url = 'https://api.ciscospark.com'

session = Session(url, token)

room = Room()
room.title = 'Spark-Python'
room.create(session)
Пример #6
0
 def test_create_test_room(self):
     room = Room()
     room.title = roomname
     resp = room.create(session)
     self.assertTrue(resp.ok)