func testExample() throws { let client = TwitterAPIKit( .bearer( "" )) let exp = expectation(description: "") /* // Before starting a Stream search, you need to add a Rule for the search. client.v2.stream.postSearchStreamRules( .init(operation: .add([.init(value: "cat has:media", tag: "cats with media")])) ).responseObject { response in print(response.prettyString) exp.fulfill() } client.v2.stream.getSearchStreamRules(.init()).responseObject { response in print(response.prettyString) exp.fulfill() } */ client.v2.stream.searchStream(.init()).streamResponse(queue: .global(qos: .default)) { response in print(response.prettyString) } wait(for: [exp], timeout: 60) }