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)
def createRoom(self, roomname): room = Room() room.title = roomname room.create(self.session) return room
def test_create_test_room(self): room = Room() room.title = roomname resp = room.create(session) self.assertTrue(resp.ok)
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)
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)